diff --git a/usr/bin/jgpicom-pipe b/usr/bin/jgpicom-pipe index 416fc48..25d2a9a 100755 --- a/usr/bin/jgpicom-pipe +++ b/usr/bin/jgpicom-pipe @@ -59,17 +59,21 @@ else fi for item in "$CONFDIR"/*.conf; do +if [ -f "$item" ];then if [ "$(readlink $CONFFILE)" -ef "$item" ];then out+=("${item##*/}") else out+=("${item##*/},ln -sf $item $CONFFILE") fi +fi done out+=("^sep($EDIT_TITLE)") +if [ -f "$CONFFFILE" ];then if [ ! "$(readlink $CONFFILE)" -ef "/dev/null" ];then out+=("$EDIT,geany $CONFFILE") fi +fi out+=("$OPENDIR,exo-open --launch FileManager $CONFDIR") printf '%s\n' "${out[@]}"