1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:07:34 +00:00
serenity/Base/etc/SystemServer.ini
Lucas CHOLLET 3197c1793a Base: Launch Clipboard at session start-up
The clipboard service hasn't been ported to user-based portals with
others services as it is needed at `GUI::Application` creation and thus
before the first login, as the `LoginServer` needs one.

This problem as been solved thanks to session-based portals, a clipboard
portal is now created at boot for the "login" session and another for
each "user" session.

With a user-based portal, the "login" portal would have needed to be
created for the `root` user, exposing us to security issues. It now, can
be owned by the `window` user.
2022-10-14 11:37:11 +02:00

71 lines
1.3 KiB
INI

[NetworkServer]
User=root
SystemModes=text,graphical,self-test
[LookupServer]
Socket=/tmp/portal/lookup
SocketPermissions=660
Priority=low
KeepAlive=true
User=lookup
SystemModes=text,graphical,self-test
[WindowServer]
Socket=/tmp/portal/window,/tmp/portal/wm
SocketPermissions=660
Priority=high
KeepAlive=true
User=window
# Ensure windowserver has a controlling TTY.
StdIO=/dev/tty0
[Clipboard]
Socket=/tmp/session/%sid/portal/clipboard
SocketPermissions=600
Priority=low
User=window
[Shell@tty0]
Executable=/bin/Shell
StdIO=/dev/tty0
Environment=TERM=xterm
KeepAlive=true
SystemModes=text
[Shell@tty1]
Executable=/bin/Shell
StdIO=/dev/tty1
Environment=TERM=xterm
KeepAlive=true
SystemModes=text
[CrashDaemon]
KeepAlive=true
User=anon
[KeyboardPreferenceLoader]
KeepAlive=false
User=anon
[TestRunner@ttyS0]
Executable=/home/anon/Tests/run-tests-and-shutdown.sh
StdIO=/dev/ttyS0
Environment=DO_SHUTDOWN_AFTER_TESTS=1 TERM=xterm PATH=/bin:/usr/bin:/usr/local/bin
User=anon
WorkingDirectory=/home/anon
SystemModes=self-test
[GenerateManpages@ttyS0]
Executable=/root/generate_manpages.sh
StdIO=/dev/ttyS0
Environment=DO_SHUTDOWN_AFTER_GENERATE=1 TERM=xterm PATH=/bin
User=root
WorkingDirectory=/root/
SystemModes=generate-manpages
[SpiceAgent]
KeepAlive=false
[LoginServer]
User=root
Arguments=--auto-login anon