27 lines
720 B
Text
27 lines
720 B
Text
|
#!/sbin/openrc-run
|
||
|
|
||
|
name=$RC_SVCNAME
|
||
|
cfgfile="/etc/qubes/$RC_SVCNAME.conf"
|
||
|
command="/usr/bin/qubes-gui"
|
||
|
pidfile="/run/qubes/$RC_SVCNAME.pid"
|
||
|
command_background="yes"
|
||
|
output_log="/var/log/qubes/$RC_SVCNAME.log"
|
||
|
error_log="/var/log/qubes/$RC_SVCNAME.err"
|
||
|
|
||
|
depend() {
|
||
|
need qubes-db
|
||
|
}
|
||
|
|
||
|
start_pre() {
|
||
|
checkpath --directory --owner $command_user:qubes --mode 0775 \
|
||
|
/run/qubes /var/log/qubes /var/run/console
|
||
|
# start console-kit-daemon
|
||
|
/usr/bin/ck-list-sessions > /dev/null 2>&1
|
||
|
# pretend tha user is at local console
|
||
|
touch /var/run/console/user
|
||
|
/bin/sh -c /usr/lib/qubes/qubes-gui-agent-pre.sh
|
||
|
. /var/run/qubes-service-environment
|
||
|
command_args="$command_args $GUI_OPTS"
|
||
|
export DISPLAY=:0
|
||
|
}
|