geeqie icon indicating copy to clipboard operation
geeqie copied to clipboard

Read-only mode

Open andreas-mausch opened this issue 11 months ago • 2 comments

  • Geeqie version [geeqie --version]: Geeqie 2.2 GTK3

I would like to know whether geeqie supports a read-only mode, so all operations which would change the file (exif modification, 90º rotations, etc.) are not allowed and result in either an error message or no change to the filesystem.

I often like to preview new images from my camera, but want to make sure I don't make any changes to them.

Thank you.

andreas-mausch avatar Mar 08 '24 11:03 andreas-mausch

There is no read-only mode. On Edit/Preferences/File Filters there is a Writable column. Unfortunately this only covers writing metadata (and there is no method to enable/disable this).

Some Geeqie actions are executed by external programs.

Setting the read-only flag when you download the files from the camera is the only thing I can suggest.

caclark avatar Mar 10 '24 14:03 caclark

You could probably achieve this by using a FUSE read-only pass-through filesystem (so you point geeqie at the FUSE mountpoint instead of the actual image directory and it simply denies any write requests). A quick search brings up https://github.com/cognusion/fuse-rofs and the slightly more complex fork https://github.com/gburca/rofs-filtered. There are probably more out there.

Edit: If you have root access you could also bind mount the directory containing the images:

mount -o bind,ro <rw-directory> <ro-directory>

elfez avatar Mar 29 '24 07:03 elfez