#!/bin/bash #--------------------------------------------------------------------- TARGET=$PRODTREE/leafweb/xbin/leafweb PROGNAME="leafweb" PROXYCFG=$PRODTREE/leafweb/etc/leafweb-proxychains.conf PROXYFLG=/etc/sysconfig/browser-use-socks5.flag #--------------------------------------------------------------------- if [ -f $TARGET ]; then # If there are no parameters, start in # user's home directory if [ "x$1" = "x" ]; then cd; fi resetpcmvol # See comments in the code if [ -f $PROXYFLG ]; then TARGET="proxychains4 -f $PROXYCFG $TARGET" fi /laclin/lacutil/single-instance --wait --usepid \ '/xbin/leafweb\z' $TARGET $* & exit else TITLE="$PROGNAME isn't installed" MSG="This version of this distro omits $PROGNAME." /laclin/lacutil/single-instance --wait --usewin \ "^$TITLE" \ zenity --error --no-wrap --title="$TITLE" --text="$MSG" fi