naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.15k stars 78 forks source link

Screenshots taken by maim do not show up as "recent files" #219

Closed omentic closed 3 years ago

omentic commented 3 years ago

When taking a screenshot, the screenshot doesn't show up as a "recent file" in (at least) applications using GtkFileChooser.

Screenshots taken by xfce4-screenshooter do appear.

foxpy commented 3 years ago

For this to work, maim should now rely on GTK. There is already a bunch of dependencies, is it worth it to bring yet another one?

naelstrof commented 3 years ago

A small python script could handle this. Some casual google searches came up with this: https://stackoverflow.com/questions/39836725/how-does-one-add-an-item-to-gtks-recently-used-file-list-from-python/39927261

I think it's outside the scope of maim to do this automatically, since there's no guarantee someone is using GTK.