summarylogtreecommitdiffstats
path: root/ucloner.sh
blob: ad149fed7c0c2a3d5c6c6cf539a03d9794da5e58 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
export LANGUAGE=`echo $LANG | grep -oP [A-Za-z_]+ | head -1`

if [ "$( ps -A | grep ucloner_gui)" ] ; then
    zenity --title="Error" --error --text="Another uclone instance is running!"
    exit 1
fi

cd /opt/ucloner/
exec gksu python2 ./ucloner_gui.py &> /dev/null