Add qubes-guivm-session utility
To be used in an xsession file (/usr/share/xsessions).
This commit is contained in:
parent
c6be7ca5cc
commit
624e4e32fb
1
Makefile
1
Makefile
@ -15,6 +15,7 @@ install:
|
|||||||
install -m 0644 etc/qvm-start-daemon-kde.desktop $(DESTDIR)/etc/xdg/autostart/
|
install -m 0644 etc/qvm-start-daemon-kde.desktop $(DESTDIR)/etc/xdg/autostart/
|
||||||
install -d $(DESTDIR)/usr/bin
|
install -d $(DESTDIR)/usr/bin
|
||||||
ln -sf qvm-start-daemon $(DESTDIR)/usr/bin/qvm-start-gui
|
ln -sf qvm-start-daemon $(DESTDIR)/usr/bin/qvm-start-gui
|
||||||
|
install -m 0755 scripts/qubes-guivm-session $(DESTDIR)/usr/bin/
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf test-packages/__pycache__ qubesadmin/__pycache__
|
rm -rf test-packages/__pycache__ qubesadmin/__pycache__
|
||||||
|
@ -634,7 +634,7 @@ class DAEMONLauncher:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if not self.is_watched(vm):
|
if not self.is_watched(vm):
|
||||||
return
|
continue
|
||||||
|
|
||||||
power_state = vm.get_power_state()
|
power_state = vm.get_power_state()
|
||||||
if power_state == 'Running':
|
if power_state == 'Running':
|
||||||
|
21
scripts/qubes-guivm-session
Executable file
21
scripts/qubes-guivm-session
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
print_usage() {
|
||||||
|
cat >&2 <<USAGE
|
||||||
|
Usage: $0 vmname
|
||||||
|
Starts given VM and runs its associated GUI daemon. Used as X session for the
|
||||||
|
GUI domain.
|
||||||
|
USAGE
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ $# -lt 1 ] ; then
|
||||||
|
print_usage
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start VM, gui-daemon and audio
|
||||||
|
qvm-start --skip-if-running "$1"
|
||||||
|
qvm-start-daemon --watch "$1" &
|
||||||
|
|
||||||
|
# Run the inner session (Xephyr) and wait until it exits
|
||||||
|
exec qvm-run -p --no-gui --service "$1" qubes.GuiVMSession
|
Loading…
Reference in New Issue
Block a user