Opened 10 months ago
Closed 10 months ago
#636 closed defect (fixed)
Get rid of the nasty sleep in prepare-dvm.sh
| Reported by: | joanna | Owned by: | marmarek |
|---|---|---|---|
| Priority: | minor | Milestone: | Release 1 |
| Component: | core | Keywords: | |
| Cc: | marmarek |
Description
Xorg -config /etc/X11/xorg-preload-apps.conf :0 &
sleep 2
DISPLAY=:0 su - user -c /tmp/qubes_save_script
In case the system load is high, this might result in dispvm savefile being prepared without correct dot files, resulting in subsequent longer dispvm starts.
Perhaps we can use some while loop waiting for some Xorg-created socket in order to correctly detect when Xorg really started.
Change History (4)
comment:1 Changed 10 months ago by joanna
comment:2 Changed 10 months ago by marmarek
- Owner changed from joanna to marmarek
- Status changed from new to accepted
comment:3 Changed 10 months ago by joanna
Perhaps we can attempt to start some simple x application, such as xclock or something, and check its exit code to see if X was already running?
comment:4 Changed 10 months ago by marmarek
- Resolution set to fixed
- Status changed from accepted to closed

Also in: vm-init.d/qubes_core_appvm.