aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/menu-scripts
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-09-16 19:38:14 +0000
committerWeblate <noreply@weblate.org>2016-09-16 19:38:14 +0000
commit8be77a80c4430b85dae569923c3efc6ed2384472 (patch)
treea972234c061667fcd01fb2d76220567af1abe34f /src-qt5/core/menu-scripts
parentTranslated using Weblate (lumina_DESKTOP@fa (generated)) (diff)
parentAdd syntax highlighting for "shell" files (.sh) (diff)
downloadlumina-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-xsrc-qt5/core/menu-scripts/ls.json.sh5
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
bgstack15