mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
Base: Launch NotificationServer at session start-up
This commit is contained in:
parent
1da9375400
commit
b01822bdd4
Notes:
sideshowbarker
2024-07-17 08:15:16 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/b01822bdd4 Pull-request: https://github.com/SerenityOS/serenity/pull/14673 Reviewed-by: https://github.com/linusg
@ -10,14 +10,6 @@ KeepAlive=true
|
||||
User=lookup
|
||||
SystemModes=text,graphical,self-test
|
||||
|
||||
[NotificationServer]
|
||||
Socket=/tmp/portal/notify
|
||||
SocketPermissions=600
|
||||
Lazy=true
|
||||
Priority=low
|
||||
KeepAlive=true
|
||||
User=anon
|
||||
|
||||
[WindowServer]
|
||||
Socket=/tmp/portal/window,/tmp/portal/wm
|
||||
SocketPermissions=660
|
||||
|
@ -45,6 +45,13 @@ SystemModes=graphical
|
||||
MultiInstance=true
|
||||
AcceptSocketConnections=true
|
||||
|
||||
[NotificationServer]
|
||||
Socket=/tmp/user/%uid/portal/notify
|
||||
SocketPermissions=600
|
||||
Lazy=true
|
||||
Priority=low
|
||||
KeepAlive=true
|
||||
|
||||
[LaunchServer]
|
||||
Socket=/tmp/user/%uid/portal/launch
|
||||
SocketPermissions=600
|
||||
|
@ -164,7 +164,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
|
||||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil("/tmp/portal/notify", "rw"));
|
||||
TRY(Core::System::unveil("/tmp/user/%uid/portal/notify", "rw"));
|
||||
TRY(Core::System::unveil("/proc/net/adapters", "r"));
|
||||
TRY(Core::System::unveil("/bin/SystemMonitor", "x"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
@ -15,7 +15,7 @@ namespace GUI {
|
||||
class ConnectionToNotificationServer final
|
||||
: public IPC::ConnectionToServer<NotificationClientEndpoint, NotificationServerEndpoint>
|
||||
, public NotificationClientEndpoint {
|
||||
IPC_CLIENT_CONNECTION(ConnectionToNotificationServer, "/tmp/portal/notify"sv)
|
||||
IPC_CLIENT_CONNECTION(ConnectionToNotificationServer, "/tmp/user/%uid/portal/notify"sv)
|
||||
|
||||
friend class Notification;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user