Hi all,
I’m running from an appimage, and would like to know how I call the purge script?
If anyone could shed some light, that would be awesome.
Thanks!
A “non-AppImage” answer:
If you haven’t removed a previous darktable
install, you can use the script from that install. If you have, then:
- Download/copy purge script from: https://github.com/darktable-org/darktable/blob/master/tools/purge_non_existing_images.sh
- Make it executable using your file manager or through the terminal with command:
chmod +x purge_non_existing_images.sh
. - Then run script with like:
./purge_non_existing_images.sh
Hope this answer isn’t too technical.
Keep in mind that that script also requires sqlite3 to be installed (the script will tell you if it’s missing)
And of course, exit darktable before running the script (it should refuse to run if dt is running, but…)
@Bruce_Williams : Oh, and please don’t post the same question in two places at the same time. Not everyone reads both, that means you waste the time of those who read one and reply, ignoring the replies in the other location.
Hmmm, downloaded it ok.
At the terminal:
bruce@audio2u:/opt/appimages
$ ./purge_non_existing_images.sh
./purge_non_existing_images.sh: line 1: payload:allShortcutsEnabled:true: command not found
I don’t understand what it’s telling me.
…and yes, I have sqlite3 installed already.
That message is not coming from the script itself.
Do you have the bash shell installed?
You could try the following;
from the directory where you placed the script, do:
>bash ./purge_non_existing_images.sh
It might be you do not have bash installed (but another shell)
It seems like you downloaded it incorrectly. That error usually appears when you download the “whole page”. Not exactly sure how you downloaded it.
- Try copying the text and paste it to a file (with the same name), by clicking button 1.
- Button 2 is for download.
(see above screenshot)
You are correct. I had obviously NOT downloaded it correctly.
I’ve got it now, and I’ve checked… yes, I DO have bash installed.
Version 5.2.15.
But still not having any luck…
bruce@audio2u:/opt
$ bash ./purge_non_existing_images.sh
bash: ./purge_non_existing_images.sh: No such file or directory
Make sure you are in the same directory as the script. You can check that by using typing: ls
. Make sure the purge script is among those.
bash ./purge_non_existing_images.sh
You don’t really need to start with bash unless your script is not executable (chmod +x [script
).
Gah. Thank you. Good point.
I thought I WAS in the right directory, but I was not.
I think the script is running now.
I have to leave for work, so I’ll check on it when I get home tonight.
Not sure why, but running the purge script without any argument did NOT remove any files.
It just seemed to create a list of images that were missing.
At the end of displaying that list, it said to ACTUALLY purge, you had to run the script with the “–purge” argument added to the end. So I did THAT, and the script removed ALL IMAGES from my database, not just those that were missing!
Not a big deal. I simply imported everything again, but I’m not sure why it did that.
Did I do something wrong?
but I’m not sure why it did that.
I can’t think of anything concrete, and chances are, this “issue” can’t be reproduced.