vm/prepare-dvm: wait for Xorg in more deterministic way (#636)
This commit is contained in:
parent
861b522d5c
commit
aa1b1e86a8
@ -13,7 +13,7 @@ possibly_run_save_script()
|
|||||||
echo $ENCODED_SCRIPT|perl -e 'use MIME::Base64 qw(decode_base64); local($/) = undef;print decode_base64(<STDIN>)' >/tmp/qubes_save_script
|
echo $ENCODED_SCRIPT|perl -e 'use MIME::Base64 qw(decode_base64); local($/) = undef;print decode_base64(<STDIN>)' >/tmp/qubes_save_script
|
||||||
chmod 755 /tmp/qubes_save_script
|
chmod 755 /tmp/qubes_save_script
|
||||||
Xorg -config /etc/X11/xorg-preload-apps.conf :0 &
|
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
|
DISPLAY=:0 su - user -c /tmp/qubes_save_script
|
||||||
killall Xorg
|
killall Xorg
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ possibly_run_save_script()
|
|||||||
echo $ENCODED_SCRIPT|perl -e 'use MIME::Base64 qw(decode_base64); local($/) = undef;print decode_base64(<STDIN>)' >/tmp/qubes_save_script
|
echo $ENCODED_SCRIPT|perl -e 'use MIME::Base64 qw(decode_base64); local($/) = undef;print decode_base64(<STDIN>)' >/tmp/qubes_save_script
|
||||||
chmod 755 /tmp/qubes_save_script
|
chmod 755 /tmp/qubes_save_script
|
||||||
Xorg -config /etc/X11/xorg-preload-apps.conf :0 &
|
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
|
DISPLAY=:0 su - user -c /tmp/qubes_save_script
|
||||||
killall Xorg
|
killall Xorg
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user