12

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.

2
  • 3
    Does this answer your question? How to change the default screenshot folder in GNOME 42?
    – graham
    May 15, 2022 at 8:10
  • 2
    It'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. Sep 14, 2022 at 16:23

1 Answer 1

10

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:

  1. Delete the directory "Screenshots"
  2. 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"

  1. In the text editor, enter a line "Screenshots".
  2. 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.

8
  • 1
    Thanks for the reply. Could please explain your answer more.
    – Raihan
    May 20, 2022 at 12:38
  • I added steps of what to do to create this effect.
    – vanadium
    May 20, 2022 at 14:27
  • just a trick...
    – Zagfai
    Oct 28, 2022 at 9:07
  • 3
    @Zagfai I indicated that the path is hardcoded. So yes, anything else than editing source code is just a trick.
    – vanadium
    Oct 29, 2022 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, 2023 at 11:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .