Gimp, Inkscape et al. – What if “recent files” are on removable media?
Sometimes I need to quickly optimize digital images in Gimp, so I open them straight from the SD card where my DSLR stored them. But its the same if I have them in a USB pendrive or, in general, in removable media.
Gimp stores the list of the recently open files, so if you quit Gimp, unmount the drive and reopen Gimp it can’t find that files anymore, and you probably get this error (it’s in italian):
How to avoid to waste time clicking on the “Cancel” button once per unfound file?
Gimp stores the list in the file .recently-used.xbel.
On Windows 7 the file is in the directory
On GNU/Linux it is in your home directory (/home/YOUR-USER-NAME/).
It is an XML file, and it’s shared among other applications (such as Inkscape, as an example, that could give the same error) according to the freedesktop.org specifications.
I opened the file with a text editor and located the lines containing the path to the removed drive.
I deleted all the lines within the <bookmark> tag (i.e. between <bookmark href=…> and </bookmark>) containing the removed drive, such as:
<bookmark href="file:///H:/DCIM/100MSDCF/DSC03829.JPG" added="2011-11-28T09:03:58Z" modified="2011-11-28T09:03:58Z" visited="2011-11-28T09:03:58Z"> <info> <metadata owner="http://freedesktop.org"> <mime:mime-type type="image/jpeg"/> <bookmark:groups> <bookmark:group>Graphics</bookmark:group> </bookmark:groups> <bookmark:applications> <bookmark:application name="GNU Image Manipulation Program" exec="'gimp-2.6 %u'" modified="2011-11-28T09:03:58Z" count="1"/> </bookmark:applications> </metadata> </info> </bookmark>
Then I saved the file and closed.
Now I can open Gimp without getting the error box.