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