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