# HG changeset patch # User nadvornik # Date 1252835721 0 # Node ID 61bd3a2f633dc12c945a8392d3799c54d803b80e # Parent fca032fc27f74c8ccad36dca4f377ee94ff757b6 added possibility to use geeqie-rotate as a standalone script diff -r fca032fc27f7 -r 61bd3a2f633d plugins/rotate/geeqie-rotate --- a/plugins/rotate/geeqie-rotate Sat Sep 12 16:37:05 2009 +0000 +++ b/plugins/rotate/geeqie-rotate Sun Sep 13 09:55:21 2009 +0000 @@ -47,13 +47,23 @@ esac } +get_sidecars= +if [ "x$1" == "x-g" ] ; then + get_sidecars=yes + shift +fi + # iterate over files on commandline for file in "$@" ; do - # we got only one file for each group, typically the main one - # get the sidecars: - geeqie -r --get-sidecars:"$file" |while read sidecar ; do - # the main file is included in the sidecar file list, no special handling is required - rotate "$sidecar" - done + if [ -n "$get_sidecars" ] ; then + # we got only one file for each group, typically the main one + # get the sidecars: + geeqie -r --get-sidecars:"$file" |while read sidecar ; do + # the main file is included in the sidecar file list, no special handling is required + rotate "$sidecar" + done + else + rotate "$file" + fi done diff -r fca032fc27f7 -r 61bd3a2f633d plugins/rotate/rotate.desktop.in --- a/plugins/rotate/rotate.desktop.in Sat Sep 12 16:37:05 2009 +0000 +++ b/plugins/rotate/rotate.desktop.in Sun Sep 13 09:55:21 2009 +0000 @@ -4,7 +4,7 @@ _Name=Apply the orientation to image content # call the helper script -Exec=geeqie-rotate %f +Exec=geeqie-rotate -g %f # Desktop files that are usable only in Geeqie should be marked like this: Categories=X-Geeqie;