diff options
Diffstat (limited to 'src-qt5')
-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..9c63c2b8 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 |