diff options
author | Weblate <noreply@weblate.org> | 2016-09-16 19:38:09 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2016-09-16 19:38:09 +0000 |
commit | 531690a5121ed0393127eaa7506e57ae5097c338 (patch) | |
tree | a4a1eb081ea417d0bdc768d2cabc50d91770f319 /src-qt5/core/menu-scripts/ls.json.sh | |
parent | Translated using Weblate (lumina_CONFIG@fa (generated)) (diff) | |
parent | Add syntax highlighting for "shell" files (.sh) (diff) | |
download | lumina-531690a5121ed0393127eaa7506e57ae5097c338.tar.gz lumina-531690a5121ed0393127eaa7506e57ae5097c338.tar.bz2 lumina-531690a5121ed0393127eaa7506e57ae5097c338.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/menu-scripts/ls.json.sh')
-rwxr-xr-x | src-qt5/core/menu-scripts/ls.json.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src-qt5/core/menu-scripts/ls.json.sh b/src-qt5/core/menu-scripts/ls.json.sh index 626912cb..43b0ead6 100755 --- a/src-qt5/core/menu-scripts/ls.json.sh +++ b/src-qt5/core/menu-scripts/ls.json.sh @@ -4,12 +4,11 @@ if [ "$1" == "" ] ; then DIR=`pwd` fi +OUT="${OUT} \" Open Directory\" : { \"type\" : \"item\", \"icon\":\"document-open\", \"action\" : \"xdg-open \\\"${DIR}\\\"\"}" ls "${DIR}" > /tmp/.tmp.lines.$$ while read name do - if [ -n "${OUT}" ] ; then - OUT="${OUT}," - fi + OUT="${OUT}," if [ -d "${DIR}/${name}" ] ; then OUT="${OUT} \"${name}\" : { \"type\" : \"jsonmenu\", \"exec\" : \"${0} \\\"${DIR}/${name}\\\"\", \"icon\":\"folder\"}" else |