slack gksu fix
[pandora_liveinfo.git] / run.sh
... / ...
CommitLineData
1#!/bin/sh
2
3NAME="Live system info"
4MSG="Reserved OMAP video layer requires root access, please enter the password."
5
6cp -n config.cfg.default config.cfg
7
8if test -f /etc/slackware-version; then
9
10 # ktsuss -m "$MSG" ./liveinfo
11 # gksu -D "$NAME" -m "$MSG" ./liveinfo
12 gksu ./liveinfo
13
14else
15
16 t=`which terminal`
17 if [ -z "$t" ]; then
18 zenity --error --text='terminal is missing.'
19 exit 1
20 fi
21
22 gksudo -D "$NAME" -m "$MSG" ./liveinfo
23
24fi