diff --git a/appvm-scripts/usrbin/qubes-run-x11vnc b/appvm-scripts/usrbin/qubes-run-x11vnc index e6594f7b..07bc40ca 100644 --- a/appvm-scripts/usrbin/qubes-run-x11vnc +++ b/appvm-scripts/usrbin/qubes-run-x11vnc @@ -128,6 +128,10 @@ guivm_vnc() { # WIP: Ensure to have the good set of x11vnc options. OPTIONS_VNC="-display :0 -auth /var/run/lightdm/root/:0 -forever" + if [ -e /sys/fs/selinux ] && command -v runcon >/dev/null; then + X11VNC="runcon -t xserver_t $X11VNC" + fi + $X11VNC $OPTIONS_VNC & }