From 2b9cf5a7b48afbfda57a10b4cbdcf0cabec782c3 Mon Sep 17 00:00:00 2001 From: snooze6214 Date: Fri, 14 Oct 2022 19:07:45 +0530 Subject: [PATCH] PixelPaint: Unveil clipboard using the right path Commit #3197c17 introduced a session based clipboard portal. This made pixel-paint fail to launch, because it had an unveil that used the old path to the clipboard. This commit fixes that and now unveils the new session based clipboard portal. --- Userland/Applications/PixelPaint/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/PixelPaint/main.cpp b/Userland/Applications/PixelPaint/main.cpp index 11650c417f..db2bf57306 100644 --- a/Userland/Applications/PixelPaint/main.cpp +++ b/Userland/Applications/PixelPaint/main.cpp @@ -33,7 +33,7 @@ ErrorOr serenity_main(Main::Arguments arguments) TRY(Core::System::unveil("/proc/all", "r")); TRY(Core::System::unveil("/res", "r")); - TRY(Core::System::unveil("/tmp/portal/clipboard", "rw")); + TRY(Core::System::unveil("/tmp/session/%sid/portal/clipboard", "rw")); TRY(Core::System::unveil("/tmp/session/%sid/portal/filesystemaccess", "rw")); TRY(Core::System::unveil("/tmp/session/%sid/portal/image", "rw")); TRY(Core::System::unveil("/etc/FileIconProvider.ini", "r"));