Skip to content

Commit

Permalink
Set XDG_SESSION_CLASS=user
Browse files Browse the repository at this point in the history
This way, even without sudo/PolicyKit access, normal user can shutdown
the VM.

QubesOS/qubes-issues#2695
  • Loading branch information
marmarek committed Jun 9, 2017
1 parent 4c32f50 commit 173d239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appvm-scripts/usrbin/qubes-run-xorg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ fi
chown root:user /var/run/xf86-qubes-socket
chmod 770 /var/run/xf86-qubes-socket

export XDG_SEAT=seat0 XDG_VTNR=7
export XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=user

exec su -l user -c "/usr/bin/xinit $XSESSION -- $XORG :0 -nolisten tcp vt07 -wr -config xorg-qubes.conf > ~/.xsession-errors 2>&1"

0 comments on commit 173d239

Please sign in to comment.