Mercurial > geeqie
view plugins/symlink/geeqie-symlink @ 1772:9f3b7a089caf
check gtk_clutter_init return value
https://sourceforge.net/tracker/index.php?func=detail&aid=2899866&group_id=222125&atid=1054680
author | nadvornik |
---|---|
date | Sat, 21 Nov 2009 20:08:51 +0000 |
parents | 3840882253fe |
children |
line wrap: on
line source
#!/bin/sh # This is a helper script that symlinks grouped files # it uses geeqie remote connection to get details about grouped files # 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 # get destination path for each sidecar file: geeqie -r --get-destination:"$sidecar" | if read destination ; then ln -s "$sidecar" "$destination" fi done done