# HG changeset patch # User nadvornik # Date 1252835721 0 # Node ID f549702f7b41583e94cf5001106506fa9f60c1be # Parent 22c398d44d7a64e33d6813db9e8cd2c6bf3461f9 added possibility to use geeqie-rotate as a standalone script diff -r 22c398d44d7a -r f549702f7b41 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 22c398d44d7a -r f549702f7b41 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;