#!/bin/sh
# Helper script for the sch-remote-assistant menu.
# Not to be called as a standalone script.

if [ -n "$1" ]; then
    exec x11vnc -q -nopw -connect_or_exit "$1" -afteraccept "$0 &"
fi

echo "message:Έγινε σύνδεση απομακρυσμένης βοήθειας" \
  | zenity --notification --window-icon=/usr/share/icons/gnome/scalable/apps/gnome-remote-desktop.svg --listen
zenity --notification --window-icon=/usr/share/icons/gnome/scalable/apps/gnome-remote-desktop.svg --text="Έγινε σύνδεση απομακρυσμένης βοήθειας"
test -n "$RFB_X11VNC_PID" && kill "$RFB_X11VNC_PID"
