qubes-guivm-session 433 B

123456789101112131415161718192021
  1. #!/bin/bash -e
  2. print_usage() {
  3. cat >&2 <<USAGE
  4. Usage: $0 vmname
  5. Starts given VM and runs its associated GUI daemon. Used as X session for the
  6. GUI domain.
  7. USAGE
  8. }
  9. if [ $# -lt 1 ] ; then
  10. print_usage
  11. exit 1
  12. fi
  13. # Start VM, gui-daemon and audio
  14. qvm-start --skip-if-running "$1"
  15. qvm-start-daemon --watch "$1" &
  16. # Run the inner session (Xephyr) and wait until it exits
  17. exec qvm-run -p --no-gui --service "$1" qubes.GuiVMSession