tazpkg rev 773

tazpkg-notify: remove toolbar
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 08 10:05:00 2015 +0200 (2015-04-08)
parents 0bda827841cd
children 489b68a58303
files tazpkg-notify
line diff
     1.1 --- a/tazpkg-notify	Wed Apr 08 09:54:28 2015 +0200
     1.2 +++ b/tazpkg-notify	Wed Apr 08 10:05:00 2015 +0200
     1.3 @@ -25,6 +25,7 @@
     1.4  
     1.5  
     1.6  fifo=/tmp/$(basename $0).fifo
     1.7 +tazweb="tazweb --notoolbar"
     1.8  panelbase="http://tazpanel:82/pkgs.cgi"
     1.9  panel="http://tazpanel:82/user/pkgs.cgi"
    1.10  doc="file:///usr/share/doc/tazpkg/tazpkg.html"
    1.11 @@ -62,11 +63,11 @@
    1.12  menu() {
    1.13  	cat << EOT
    1.14  menu:\
    1.15 -$(_n 'My packages'       )!tazweb $panelbase?list!TazPkg|\
    1.16 -$(_n 'Recharge lists'    )!tazweb $panel?recharge!tazpkg-up|\
    1.17 -$(_n 'Check upgrade'     )!tazweb $panel?up!tazpkg-up|\
    1.18 +$(_n 'My packages'       )!$tazweb $panelbase?list!TazPkg|\
    1.19 +$(_n 'Recharge lists'    )!$tazweb $panel?recharge!tazpkg-up|\
    1.20 +$(_n 'Check upgrade'     )!$tazweb $panel?up!tazpkg-up|\
    1.21  $(_n 'TazPkg SHell'      )!terminal -e tazpkg shell!utilities-terminal|\
    1.22 -$(_n 'TazPkg manual'     )!tazweb $doc!slitaz-doc|\
    1.23 +$(_n 'TazPkg manual'     )!$tazweb $doc!slitaz-doc|\
    1.24  $(_n 'Close notification')!quit!gtk-close
    1.25  EOT
    1.26  }
    1.27 @@ -88,7 +89,7 @@
    1.28  		# Missing packages list
    1.29  		if [ ! -f $PKGS_DB/packages.list ]; then
    1.30  			tooltip="$(_ 'No packages list found - %s' "$text")"
    1.31 -			(echo "action:tazweb $panel?recharge"
    1.32 +			(echo "action:$tazweb $panel?recharge"
    1.33  			 echo "tooltip:$tooltip"
    1.34  			 echo "icon:tazpkg-up") > $fifo
    1.35  			exit 0
    1.36 @@ -97,7 +98,7 @@
    1.37  		# Too old packages list
    1.38  		if [ "$mtime" ]; then
    1.39  			tooltip="$(_ 'Your packages list is older than 10 days')"
    1.40 -			(echo "action:tazweb $panel?recharge"
    1.41 +			(echo "action:$tazweb $panel?recharge"
    1.42  			 echo "tooltip:$tooltip"
    1.43  			 echo "icon:tazpkg-up") > $fifo
    1.44  			exit 0
    1.45 @@ -109,7 +110,7 @@
    1.46  				'There is %s upgradeable package' \
    1.47  				'There are %s upgradeable packages' $up \
    1.48  				"<b>$up</b>")"
    1.49 -			(echo "action:tazweb $panel?up"
    1.50 +			(echo "action:$tazweb $panel?up"
    1.51  			 echo "tooltip:$tooltip"
    1.52  			 echo "icon:tazpkg-up") > $fifo
    1.53  			exit 0