diff options
author | Ken Moore <ken@pcbsd.org> | 2016-09-16 08:15:43 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-09-16 08:15:43 -0400 |
commit | 2b623f5331d5f705d50e0d6ce9887896abe986f7 (patch) | |
tree | b57ba3a8feccd4fa6d5880aaf8f3015e0fca2b1b | |
parent | Clean up how the system app finder/parser is saved in memory a bit. Trying to... (diff) | |
download | lumina-2b623f5331d5f705d50e0d6ce9887896abe986f7.tar.gz lumina-2b623f5331d5f705d50e0d6ce9887896abe986f7.tar.bz2 lumina-2b623f5331d5f705d50e0d6ce9887896abe986f7.zip |
Adjust the ls.json.sh script a bit so every directory gets an "open directory" button for opening within a file manager as well.
-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 |