Ubuntu – How to specify the default save directory for gnome-screenshot

gnomegnome-screenshotprint-screenshortcut-keys

Are there any sort of configuration options for specifying the default save location for gnome-screenshot, or is this hard-coded into the source code?

It used to be ~/Desktop, which seems to have changed to ~/Pictures (in 12.04).

The only possible solution I've seen is about Setting the default name (as it includes time stamp information now instead of simply 'Screenshot#'), but that solution doesn't really seem ideal to me.

Also, this post suggested that the last save location is remembered the next time you take a screenshot, but in my experience, this doesn't seem to be the case. And in any case, following on from that, that entry in gconf-editor doesn't even seem to accurately reflect the last location, so more than likely an entry related to an older version of gnome-screenshot.

Table of contents:

Best Answer

For 12.04

Via GUI

  1. Install dconf-editor
  • From the command line, run the command sudo apt-get install dconf-editor

  • Or click here to install from the Ubuntu Software Center:

    Install via the software center

  1. Press Alt + F2 and type dconf-editor

  2. Go to org -> gnome -> gnome-screenshot

  3. At "auto-save-directory" type the desired directory in the following format: file:///home/user/Desktop/

    name: auto-save-directory, value: file:///full/path/

A tip for anyone who is using the configuration editor in unity: click on the arrow to the left the org text to expand it.

Via Terminal

Simply run this command, replacing the path with your preferred directory.

gsettings set org.gnome.gnome-screenshot auto-save-directory "file:///home/$USER/Downloads/"
Related Question