tazpanel rev 581

libtazpanel: s/noboby/root/
"fixes" user-switch on any link clicked if panel launched from new tazpkg notifier or su -c tazpanel
env problems?
------------------
boot.cgi: do not find in /run/media/username/disks
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Apr 08 18:09:43 2016 +0200 (2016-04-08)
parents 1b972fb11400
children 00f3f95762d4
files boot.cgi lib/libtazpanel
line diff
     1.1 --- a/boot.cgi	Tue Apr 05 09:58:57 2016 +0300
     1.2 +++ b/boot.cgi	Fri Apr 08 18:09:43 2016 +0200
     1.3 @@ -218,7 +218,7 @@
     1.4  			esac
     1.5  			echo "</td>"
     1.6  			# Attempt to get daemon status
     1.7 -			pidfile=$(find /run /var/run -name *$name*.pid)
     1.8 +			pidfile=$(find /run /var/run -maxdepth 2 -name *$name*.pid)
     1.9  			[ "$pidfile" ] && pid=$(cat $pidfile)
    1.10  			# Dbus
    1.11  			[ -f /var/run/${name}/pid ] && pid=$(cat /var/run/${name}/pid)
     2.1 --- a/lib/libtazpanel	Tue Apr 05 09:58:57 2016 +0300
     2.2 +++ b/lib/libtazpanel	Fri Apr 08 18:09:43 2016 +0200
     2.3 @@ -14,7 +14,7 @@
     2.4  _n() { local T="$1"; shift; printf "$(gettext "$T")" "$@"; }
     2.5  
     2.6  
     2.7 -GUI_USER=nobody
     2.8 +GUI_USER=root
     2.9  [ "${HTTP_HOST/:*/:}" == "127.0.0.1:" ] &&
    2.10  for i in "$HTTP_COOKIE" "$QUERY_STRING" ; do
    2.11  	v="$(echo "$i" | sed '/guiuser=/!d;s/.*guiuser=\([A-Za-z0-9_]*\).*/\1/')"