qubes-sysinit: set GUI_OPTS in gui-agent-linux

This commit is contained in:
Frédéric Pierret (fepitre) 2020-01-14 17:57:08 +01:00
parent eac2e79483
commit 9d7a3f2cb9
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -60,13 +60,4 @@ done
# Prepare environment for other services
echo > /var/run/qubes-service-environment
gui_opts="-d $(qubesdb-read /qubes-gui-domain-xid || echo 0)"
debug_mode=$(qubesdb-read /qubes-debug-mode 2> /dev/null)
if [ -n "$debug_mode" ] && [ "$debug_mode" -gt 0 ]; then
gui_opts="$gui_opts -vv"
fi
echo "GUI_OPTS=$gui_opts" >> /var/run/qubes-service-environment
exit 0