Closed frigi83 closed 4 years ago
It's not beautiful, but you can always do something like this:
$ snap run --shell darktable -c \$SNAP/usr/share/darktable/tools/purge_non_existing_images.sh
However, that particular script doesn't run because the snap is missing the sqlite3 binary. Just looking at that script, it doesn't appear to use darktable in any way, so if you had sqlite3 installed on your machine you could just run it directly:
$ /snap/darktable/current/usr/share/darktable/tools/purge_non_existing_images.sh <args>
I don't see a great method of exposing the ability to run random scripts within darktable though. We also don't want to bloat the snap with software that isn't required by darktable itself (like the sqlite3 binary). In that sense, while #13 is definitely an issue that has a clear solution, this does not, and is not really related.
Thank's for the reply.
I think the only way is to copy the script locally and change the location of the library.db
file in:
DBFILE=$HOME/snap/darktable/current/library.db
I hope that DT developer will integrate these functions into the GUI as soon as possible.
Greetings from Switzerland
Maybe this issue is related with #13
It is possible to launch the scripts in the
tools/
directory of DT? There are some helpful scripts to clean the library from non existing images (like purge_non_existing_images.sh).