Score:1

Recently used files not working for screenshots created with ALT - PRINT

in flag

I create a screentshot with ALT - PRINT.

The file gets created in my ~/Bilder (German for Images) directory.

But if I open Gimp and then choose "open" then "Recently files", I don't see the screenshot I took a minute ago.

How to make the screenshot available in the recently use files?

I mean "recently used files" from this dialog:

recently-used-files--gimp

"Zuletzt ..." is German for "Recently used"

Soren A avatar
mx flag
I think that "Recent Files" in Gimp are files that you recently have opened in Gimp, not files that you recently created in other applications. Most applications work this way.
uz flag
Jos
It works for me.
uz flag
Jos
@SorenA No, that is definitely not the case. "Open / Recently used" shows all image files that have been recently used, whether or not opened by Gimp. At least that is how it works on my system.
guettli avatar
in flag
@Jos I updated the question and added a screenshot.
uz flag
Jos
Do you have your "file history" turned off? See [this](https://help.ubuntu.com/stable/ubuntu-help/privacy-history-recent-off.html.en).
vanadium avatar
cn flag
A limitation, I guess. Only files accessed using graphical applications are registered, not files created from a command (which is launched through the shortcut key). Open the file once in Gimp or a viewer, and it will make it into the list.
uz flag
Jos
@vanadium But why does it work on my system then? (21.10, Gimp 2.10.24)
vanadium avatar
cn flag
Doe not work for me on 21.10, however it is a flatpak version of Gimp. But the file appears in eog indeed. Perhaps this is a snap version of Gimp? OP, plese clarify.
FedKad avatar
cn flag
It also works for me: Ubuntu 21.10, normal (`apt`) installation of Gimp 2.10.24.
Score:0
om flag

First, there are two distinct "Recent files" in Gimp:

  • Those in File ➤ Open recent (Gimp edit history)
  • Those in the Recently used tab in the file selection dialog from File ➤ Open... which are shared between applications. For instance, a file freshly downloaded with Firefox will appear here in Gimp, and conversely you can export a file in Gimp, and then immediately upload it in Firefox, where it will appear at the top of the "Recent files".

This is all about the second ones.

The Recently used files in Gimp come from the file .local/share/recently-used.xbel. This file is normally shared among applications.

But in some packagings (flatpak, at least, IIRC) Gimp is "sandboxed" and made to see a virtual file system where directories can be different from those of the rest of the OS, and this makes it use its own copy of .local/share/recently-used.xbel that defeats its purpose.

I no longer use the Gimp flatpak, but at the time I managed to fix the problem by replacing the .local/share/in the flatpak by a soft link to the real .local/share/. You can't link recently-used.xbel directly because to update it applications (including Gimp) erase it and recreate it and this replaces the soft link by a real file. Linking the parent directory works because the applications do not remove/replace the directory so the link remains. As far as I could tell this has no ill effects (recently-used.xbel appears to be the only file that Gimp uses in it).

Another side-effect of sandboxing was that Gimp had its own private /tmp so you couldn't share files with other apps that uses /tmp for this (in my case, the Spectacle screen capture app). But this could have been fixed.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.