diff --git a/vm-init.d/qubes_core_appvm b/vm-init.d/qubes_core_appvm index c6c62f74..ebd3e010 100755 --- a/vm-init.d/qubes_core_appvm +++ b/vm-init.d/qubes_core_appvm @@ -13,7 +13,7 @@ possibly_run_save_script() echo $ENCODED_SCRIPT|perl -e 'use MIME::Base64 qw(decode_base64); local($/) = undef;print decode_base64()' >/tmp/qubes_save_script chmod 755 /tmp/qubes_save_script Xorg -config /etc/X11/xorg-preload-apps.conf :0 & - sleep 2 + while ! [ -S /tmp/.X11-unix/X0 ]; do sleep 0.5; done DISPLAY=:0 su - user -c /tmp/qubes_save_script killall Xorg } diff --git a/vm-systemd/prepare-dvm.sh b/vm-systemd/prepare-dvm.sh index 86b6a74b..d0f45709 100755 --- a/vm-systemd/prepare-dvm.sh +++ b/vm-systemd/prepare-dvm.sh @@ -7,7 +7,7 @@ possibly_run_save_script() echo $ENCODED_SCRIPT|perl -e 'use MIME::Base64 qw(decode_base64); local($/) = undef;print decode_base64()' >/tmp/qubes_save_script chmod 755 /tmp/qubes_save_script Xorg -config /etc/X11/xorg-preload-apps.conf :0 & - sleep 2 + while ! [ -S /tmp/.X11-unix/X0 ]; do sleep 0.5; done DISPLAY=:0 su - user -c /tmp/qubes_save_script killall Xorg }