GNOME Bugzilla – Bug 715038
Screenshots are not saved anywhere when target directory does not exist.
Last modified: 2021-05-25 12:37:38 UTC
Created attachment 261268 [details] strace log Using Debian 7.2 up to date in a fresh install, the user has an empty home directory besides ~/Downloads. Now if you press PrtScr, I see the screen flashing, but no image shows up in any directory I know of. A strace -o screenshot.log gnome-screenshot produces the line: open("/home/christian/.cache/gnome-screenshot/scr-1873812072.png", O_RDONLY) = 10 (full file attached) But the directory ~/.cache/gnome-screenshot is empty. I tried to create a ~/Pictures dir, as stated in Bug, no difference This IMHO is a severe bug as it renders gnome-screenshot unusable.
Sry, forgot to link to "as stated in Bug 669629"
(In reply to Christian Gonzalez from comment #0) > Created attachment 261268 [details] > strace log > > Using Debian 7.2 up to date in a fresh install, the user has an empty home > directory besides ~/Downloads. > Now if you press PrtScr, I see the screen flashing, but no image shows up in > any directory I know of. A > strace -o screenshot.log gnome-screenshot > produces the line: > open("/home/christian/.cache/gnome-screenshot/scr-1873812072.png", > O_RDONLY) = 10 > (full file attached) > > But the directory ~/.cache/gnome-screenshot is empty. That's where the file is temporarily saved in order to display it into the "Save" dialog. The XDG_CACHE_HOME/gnome-screenshot directory is created if it does not exist. > I tried to create a ~/Pictures dir, as stated in Bug, no difference You need the xdg-user-dirs package, to set up the XDG user directories, otherwise GLib won't know where the XDG_PICTURES_DIR is located. The fallback for missing directories is $HOME.
Ok, even if it's temporarily saved there, as I said in the first place, there *is* no directory created by gnome-screenshot. The file just vanishes. And I *have* installed the xdg-user-dirs package. And even if the package is not installed, as you said, there *must* be a fallback - save the picture in $HOME. But that does not happen. There is no file saved. Can I do anything to help fixing this?
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/gnome-screenshot/-/issues/ Thank you for your understanding and your help.