#!/bin/bash

SPID=$(pgrep -f gnome-session)
dbus=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$SPID/environ|cut -d= -f2-)
export DBUS_SESSION_BUS_ADDRESS=$dbus

su -c 'notify-send -i /usr/share/pixmaps/faces/lightning.jpg "VPN IS DOWN !" --icon=dialog-error' user
