Skip to content
30 novembre 2011 / Marco Alici

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 C:\Users\YOUR-USER-NAME\ C:\Users\YOUR-USER-NAME\AppData\Local;

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="&apos;gimp-2.6 %u&apos;" 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.

That’s it.🙂

5 commenti

Lascia un commento
  1. Oliver / Lug 18 2013 21:30

    and that’s faster than clicking on “cancel”? (or: what did I miss?!)

    Mi piace

  2. pablo / Gen 5 2012 01:55

    http://www.Partha.com… they have GIMP 2.7.5 but only for Windows, for Linux everything goes via PPA’s:)

    Mi piace

  3. foto e parole / Nov 30 2011 11:46

    Interessante soluzione, e’ stata appena condivisa nella pagina del forum di Inkscape, sezione Gimp,linkando il vostro blog
    grazie per averlo postato.

    http://inkscapeforum.it/gimp/gimp-inkscape-et-al-what-if-recent-files-are-on-removable-media/

    Mi piace

Lascia un commento - Leave a comment

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

%d blogger cliccano Mi Piace per questo: