/usr/lib/geeqie/geeqie-import is in geeqie-common 1:1.2-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #!/bin/sh
case "$1" in
gqview)
srcdir=$HOME/.gqview/metadata
;;
geeqie-1-alpha)
srcdir=$HOME/.geeqie/metadata
;;
*)
echo Unknown argument $1
exit 1
;;
esac
destdir=$HOME/.local/share/geeqie/metadata
if [ ! -d $HOME/.local/share/geeqie ] ; then
echo \"$HOME/.local/share/geeqie\" does not exist
exit 1
fi
for ext in .meta .gq.xmp ; do
find "$srcdir" -type f -name "*$ext" -print | while read src ; do
img="${src#$srcdir}"
img="${img%$ext}"
dest="$destdir$img$ext"
if [ -f "$img" -a ! -f "$dest" ] ; then
mkdir -p "${dest%/*}"
cp -pr "$src" "$dest"
echo Importing $ext metadata for \"$img\"
fi
done
done
|