-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qubes-run-xorg will only start the "outer" Xorg instance. The Xephyr session should be initiated using qrexec: qvm-run -p --no-gui --service $GUIVM qubes.GuiVMSession The '-p' ensures that the above command will wait for the session to finish.
- Loading branch information
Showing
5 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
if [ $(whoami) == "root" ]; then | ||
echo "Should be run as normal user!" | ||
exit 1 | ||
fi | ||
|
||
DISPLAY_XORG=:1 | ||
DISPLAY_XEPHYR=:0 | ||
|
||
XSESSION="/etc/X11/xinit/xinitrc" | ||
if [ -f /etc/X11/Xsession ]; then | ||
# Debian-based distro, set Xsession appropriately | ||
XSESSION="/etc/X11/Xsession qubes-session" | ||
fi | ||
|
||
# Wait for Xorg display (started by qubes-run-xorg) | ||
if ! timeout 30s sh -c "while ! xdpyinfo -display $DISPLAY_XORG > /dev/null 2>&1; do sleep 1; done"; then | ||
echo "Timed out waiting for Xorg display $DISPLAY_XORG" | ||
exit 1 | ||
fi | ||
|
||
# Run xsession into Xephyr | ||
export DISPLAY=$DISPLAY_XORG | ||
exec /usr/bin/xinit $XSESSION -- /usr/bin/qubes-run-xephyr $DISPLAY_XEPHYR > ~/.xsession-errors 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters