7

Configuring with dconf or gconf as suggested in this post worded on Ubuntu Gnome 13.10 (I tried and succeeded). But does NOT work on Ubuntu Gnome 14.04.

How to change auto-save-directory of gnome-screenshot on Ubuntu Gnome 14.04?

2 Answers 2

15

Edit

after reading this article and this question it seems like in Ubuntu-Gnome 14.04 (gnome 3.10) the screenshots with Keyboard shortcuts eg:Print are handle by the shell (gnome-settings-daemon media-keys) saving the files to ~/Pictures and not by the gnome-screenshot application.

I have installed Ubuntu Gnome 14.04 to test it.

1) I set the auto-save-directory to /tmp:

  • gsettings set org.gnome.gnome-screenshot auto-save-directory '/tmp'

2) I disable the keyboard shortcut Print and I created a new one to run the gnome-screenshot command with the shortcut Ctrl+Alt+H . Then I pressed the new shortcut and the screenshot appears in the /tmp directory.

enter image description here

enter image description here

enter image description here

So, set the auto-save-directory value works for gnome-screenshot, but to solve this issue you can try to disable the default keyboard shortcuts for Screenshots and create new ones but running the gnome-screenshot command.

gnome-screenshots command examples:

Whole screen: gnome-screenshot
Grab a window: screen gnome-screenshot -w
Grab an area: screen gnome-screenshot -a
Send the grab to the clipboard: gnome-screenshot -c
Interactive: gnome-screenshot -i


You can set the directory with the dconf command.

Command line

In this example I'm going to set my Downloads directory.

dconf write /org/gnome/gnome-screenshot auto-save-directory \'/home/youruser/Downloads\'

Please put the full path to the folder... My case /home/virtual/Downloads

GUI with dconf-editor Install dconf-editor

enter image description here

15
  • Thanks, but does not work for me. May 10, 2014 at 13:46
  • @frozen-flame... if you run "gsettings get org.gnome.gnome-screenshot auto-save-directory". what is the result? May 10, 2014 at 13:51
  • 2
    After gsettings set org.gnome.gnome-screenshot auto-save-directory /new/path, gsettings get org.gnome.gnome-screenshot auto-save-directory gives me /new/path. But when I take screenshot with Print Scr button, the picture still saves to the old path(~/Pictures). May 10, 2014 at 14:38
  • @frozen-flame: edited for dconf - do you have a value in last-save-directory?
    – Takkat
    May 10, 2014 at 14:43
  • @frozen-flame: also try a shot using shift-PrtScr to select an area (this is what I tested above for working)
    – Takkat
    May 10, 2014 at 14:47
3

Just install dconf-editor:

sudo apt-get install dconf-editor

Open dconf-editor and edit the auto-save-directory field (see screenshot below):

  • org > gnome > gnome-screenshot

screenshot

2
  • Yeah, that doesnt work with the printscreen screenshot.
    – RichieHH
    Aug 29, 2017 at 10:08
  • it does work for me (ubuntu 16.04)
    – OSdave
    Aug 29, 2017 at 13:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.