Library on removable media has to be re-updated after opening Shotwell with media unmounted
Hi, I haven't tested this extensively as my primary Shotwell library is quite large.
I have a folder under a removable media path such as /run/media/username/drivelabel/shotwell
and it seems to work very well for the most part. However, I noticed at least with the newer releases that every time I open Shotwell with the drive unplugged, it seems to think that the library is completely wiped—and if I close and reopen Shotwell with the drive plugged in, I have to wait for a few hours as it says "Updating library..."
I'm not familiar with the codebase at all, but it seems (at least to me) like Shotwell might be clearing the local cache of library photos if it notices my set library directory doesn't exist? It would be great if I could just open up Shotwell with my drive accidentally unplugged, then be able to plug in the drive and reopen without worrying about re-updating the local cache of the library or whatever.
Would love to help further debug or test this if needed. Thanks for all your work!
Shotwell 0.30.8 on Archlinux
Edit: perhaps a workaround would be setting the --datadir
to something on the same drive the library resides on?