#!/bin/bash # note 25/5/31 these exports were included from my arch install, not sure why. disabling for now, if they arent needed the next time I look at this feel free to remove them export XAUTHORITY=/home/fred/.Xauthority export DISPLAY=:0 export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus #guest_name="$1" #libvirt_task="$2" if [[ $2 = "started" ]]; then # on_hook runs inline on VMmanager echo "no-op" elif [[ $2 = "stopped" ]]; then bash /home/fred/scripts/VM/VMmanager.sh off_hook fi