diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2022-07-24 15:29:26 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-14 21:52:35 +0100 |
commit | 1da9375400533961cc5ac8992ad4bae827882470 (patch) | |
tree | 511ebcdb478084e90819c6dd063915f5f2668843 | |
parent | e8115bfdb17a4792f50402ce22884910ee7de2ea (diff) | |
download | serenity-1da9375400533961cc5ac8992ad4bae827882470.zip |
Base: Launch ImageDecoder at session start-up
-rw-r--r-- | Base/etc/SystemServer.ini | 9 | ||||
-rw-r--r-- | Base/home/anon/.config/SystemServer.ini | 8 | ||||
-rw-r--r-- | Userland/Applications/Browser/main.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/PixelPaint/main.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibImageDecoderClient/Client.h | 2 | ||||
-rw-r--r-- | Userland/Services/WebContent/main.cpp | 2 |
6 files changed, 12 insertions, 13 deletions
diff --git a/Base/etc/SystemServer.ini b/Base/etc/SystemServer.ini index ef22b9225d..f102fb5341 100644 --- a/Base/etc/SystemServer.ini +++ b/Base/etc/SystemServer.ini @@ -1,12 +1,3 @@ -[ImageDecoder] -Socket=/tmp/portal/image -SocketPermissions=600 -Lazy=true -User=anon -SystemModes=graphical -MultiInstance=true -AcceptSocketConnections=true - [NetworkServer] User=root SystemModes=text,graphical,self-test diff --git a/Base/home/anon/.config/SystemServer.ini b/Base/home/anon/.config/SystemServer.ini index b6f8060949..133c395ffb 100644 --- a/Base/home/anon/.config/SystemServer.ini +++ b/Base/home/anon/.config/SystemServer.ini @@ -37,6 +37,14 @@ SystemModes=text,graphical MultiInstance=true AcceptSocketConnections=true +[ImageDecoder] +Socket=/tmp/user/%uid/portal/image +SocketPermissions=600 +Lazy=true +SystemModes=graphical +MultiInstance=true +AcceptSocketConnections=true + [LaunchServer] Socket=/tmp/user/%uid/portal/launch SocketPermissions=600 diff --git a/Userland/Applications/Browser/main.cpp b/Userland/Applications/Browser/main.cpp index 988ac7f0f2..a18327aada 100644 --- a/Userland/Applications/Browser/main.cpp +++ b/Userland/Applications/Browser/main.cpp @@ -85,7 +85,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) TRY(Core::System::unveil("/etc/passwd", "r")); TRY(Core::System::unveil("/etc/timezone", "r")); TRY(Core::System::unveil("/tmp/user/%uid/portal/filesystemaccess", "rw")); - TRY(Core::System::unveil("/tmp/portal/image", "rw")); + TRY(Core::System::unveil("/tmp/user/%uid/portal/image", "rw")); TRY(Core::System::unveil("/tmp/user/%uid/portal/webcontent", "rw")); TRY(Core::System::unveil("/tmp/user/%uid/portal/request", "rw")); TRY(Core::System::unveil("/bin/BrowserSettings", "x")); diff --git a/Userland/Applications/PixelPaint/main.cpp b/Userland/Applications/PixelPaint/main.cpp index d3eb61a4b5..bb73e1e4a8 100644 --- a/Userland/Applications/PixelPaint/main.cpp +++ b/Userland/Applications/PixelPaint/main.cpp @@ -34,7 +34,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil("/tmp/portal/clipboard", "rw")); TRY(Core::System::unveil("/tmp/user/%uid/portal/filesystemaccess", "rw")); - TRY(Core::System::unveil("/tmp/portal/image", "rw")); + TRY(Core::System::unveil("/tmp/user/%uid/portal/image", "rw")); TRY(Core::System::unveil("/etc/FileIconProvider.ini", "r")); TRY(Core::System::unveil(nullptr, nullptr)); diff --git a/Userland/Libraries/LibImageDecoderClient/Client.h b/Userland/Libraries/LibImageDecoderClient/Client.h index be96a58fe8..04f239a1b3 100644 --- a/Userland/Libraries/LibImageDecoderClient/Client.h +++ b/Userland/Libraries/LibImageDecoderClient/Client.h @@ -27,7 +27,7 @@ struct DecodedImage { class Client final : public IPC::ConnectionToServer<ImageDecoderClientEndpoint, ImageDecoderServerEndpoint> , public ImageDecoderClientEndpoint { - IPC_CLIENT_CONNECTION(Client, "/tmp/portal/image"sv); + IPC_CLIENT_CONNECTION(Client, "/tmp/user/%uid/portal/image"sv); public: Optional<DecodedImage> decode_image(ReadonlyBytes); diff --git a/Userland/Services/WebContent/main.cpp b/Userland/Services/WebContent/main.cpp index 0db20b9016..9db9c3ed40 100644 --- a/Userland/Services/WebContent/main.cpp +++ b/Userland/Services/WebContent/main.cpp @@ -24,7 +24,7 @@ ErrorOr<int> serenity_main(Main::Arguments) TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil("/etc/timezone", "r")); TRY(Core::System::unveil("/tmp/user/%uid/portal/request", "rw")); - TRY(Core::System::unveil("/tmp/portal/image", "rw")); + TRY(Core::System::unveil("/tmp/user/%uid/portal/image", "rw")); TRY(Core::System::unveil("/tmp/user/%uid/portal/websocket", "rw")); TRY(Core::System::unveil(nullptr, nullptr)); |