mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
Base: Launch NotificationServer at session start-up
This commit is contained in:
parent
1da9375400
commit
b01822bdd4
|
@ -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 a new issue