qubes.WaitForSession 151 B

12345678
  1. #!/bin/sh
  2. USERNAME="$(qubesdb-read /default-user || echo 'user')"
  3. while ! [ -e "/var/run/qubes/qrexec-server.$USERNAME.sock" ]
  4. do
  5. sleep 0.1
  6. done