slitaz-tools rev 1019

tazbox mkmenu: do not add logout menu to LXPanel, only translate it if exists
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 11 02:37:37 2017 +0300 (2017-04-11)
parents c187e3d49df6
children 13e9412db15f
files tazbox/tazbox
line diff
     1.1 --- a/tazbox/tazbox	Tue Apr 11 02:28:50 2017 +0300
     1.2 +++ b/tazbox/tazbox	Tue Apr 11 02:37:37 2017 +0300
     1.3 @@ -181,8 +181,8 @@
     1.4  			# if menu already exists - shrink it to '@@@'
     1.5  			newconf=$(echo "$conf" | sed 's|.*user\.directory.*$|@@@|')
     1.6  		else
     1.7 -			# otherwise add '@@@' before the last line (last line is the space)
     1.8 -			newconf=$(echo "$conf" | tac | sed '2i@@@' | tac)
     1.9 +			# otherwise do nothing
    1.10 +			newconf="$conf"
    1.11  		fi
    1.12  		menu=$(cat <<EOT
    1.13  Plugin {