#!/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