diff options
author | Weblate <noreply@weblate.org> | 2016-09-16 19:38:14 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2016-09-16 19:38:14 +0000 |
commit | 8be77a80c4430b85dae569923c3efc6ed2384472 (patch) | |
tree | a972234c061667fcd01fb2d76220567af1abe34f /src-qt5/core/menu-scripts | |
parent | Translated using Weblate (lumina_DESKTOP@fa (generated)) (diff) | |
parent | Add syntax highlighting for "shell" files (.sh) (diff) | |
download | lumina-8be77a80c4430b85dae569923c3efc6ed2384472.tar.gz lumina-8be77a80c4430b85dae569923c3efc6ed2384472.tar.bz2 lumina-8be77a80c4430b85dae569923c3efc6ed2384472.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/menu-scripts')
-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 |