I recently switched to Ubuntu 22.04 and I really like its default screenshot UI, but there seems to be no way to change the autosave directory. It saves the pictures to the $HOME/Pictures/Screenshots
directory and I want it to save them to another directory.
I know there are alternatives such as using gnome-screenshot
but I want to use the default one.
Please suggest a method to resolve this issue. And please feel free to ask for other additional information.
Thanks in advance.

- 371
-
3Does this answer your question? How to change the default screenshot folder in GNOME 42? – graham May 15 '22 at 08:10
-
2It's not really. This answer simply installs different screenshot tool which is configurable. It doesn't answer how to configure default Ubuntu 22.04 screenshot tool. I personally like the built-in Ubuntu 22.04 tool and would really like to configure the output path. – Tom Raganowicz Sep 14 '22 at 16:23
1 Answers
It looks like this path is hardcoded, at best in a readable configuration file, at worst in binary code. There is no user exposed way to change that path.
As a workaround, you may replace the directory "Screenshots" in the "Pictures" directory by a link pointing to the location where you want to save the images. You could even hide that default directory by creating a text file .hidden
in the Pictures folder, that contains the line Screenshots
. For practical purposes, that would achieve what you want, but it remains a workaround.
To achieve that:
- Delete the directory "Screenshots"
- Create a symbolic link with the name "Screenshots" to the directory where you would want the files to be saved.
Now, files saved to ~/Pictures/Screenshots
will, because of the link, actually be written in the directory that link "Screenshots" refers to.
Optionally, to hide "Screenshots"
- In the text editor, enter a line "Screenshots".
- Save that file in the directory "Pictures", giving it the name
.hidden
.
The file .hidden
is in itself hidden, because the name starts with a dot. Any file names included in that file also will be hidden in the file manager.

- 88,010
-
1
-
-
-
3@Zagfai I indicated that the path is hardcoded. So yes, anything else than editing source code is just a trick. – vanadium Oct 29 '22 at 14:41
-
1@odigity file an issue to the developers of Gnome Shell. This is not Canonical's doing except for their choice to use Gnome Shell. – vanadium Mar 14 '23 at 11:27
-
@vanadium - Are you sure? (I concluded it was Canonical's fault because gnome-screenshot still exists, and installs and works fine - and lets you set the download dir.) – odigity Mar 16 '23 at 13:56
-
@odigity Yes I am sure. gnome-screenshot indeed also remains available thus far. – vanadium Mar 18 '23 at 07:59
-
Does it mean the default screenshot tool does not follow XDG_PICTURES nor any xdg conventions ? ? ? – Coeur Noir Apr 05 '23 at 21:41