Split ESSID and BSSID values stored in gtk.ListStore
[wifi-radar.git] / su-wifiradar.in
blobbb18649faf6c88ec11f02069a6835b864193a5e3
1 #!/bin/sh
3 if which gksu 1>/dev/null 2>&1 ; then
4 GUI_SU=$(which gksu)
5 GUI_SU_OPTS="-S"
6 elif which ktsuss 1>/dev/null 2>&1 ; then
7 GUI_SU=$(which ktsuss)
8 GUI_SU_OPTS=""
9 elif which kdesu 1>/dev/null 2>&1 ; then
10 GUI_SU=$(which kdesu)
11 GUI_SU_OPTS=""
12 else
13 notify-send -i @ICONPATH@/wifi-radar.png -u critical \
14 "No GUI su program" "wifi-radar is unable to find a graphical su program."
15 exit 1
18 exec $GUI_SU $GUI_SU_OPTS "$@"