gnome-screenshot doesn't autosave but interactively asks for a save directory












2















I've specified an auto-save-directory in dconf-editor under org.gnome.gnome-screenshot however it still asks me for a save directory every time I take a screenshot.





In prior Linux Mint versions (17, 17.3, ...) it went like this: I press Print, the screen goes white, and then I continue doing what I was doing (with a screenshot being made and put into the auto-save-directory)



In 18 however a dialog pops up after it goes white and asks me interactively what I want to name the screenshot and what folder I want to put it in.



I find this very annoying since I put them all in the same folder and don't bother with filenames since the current date and time are usually descriptive enough (plus they're chronologically sorted). Can I change the behavior of gnome-screenshot or are there any alternative programs?










share|improve this question














bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • I started using scrot as Custom Shortcut using the Print key however if I want to screenshot only the current window (Alt+Print) this still invokes gnome-screenshot and that annoying dialog.

    – xjcl
    Sep 10 '17 at 19:39
















2















I've specified an auto-save-directory in dconf-editor under org.gnome.gnome-screenshot however it still asks me for a save directory every time I take a screenshot.





In prior Linux Mint versions (17, 17.3, ...) it went like this: I press Print, the screen goes white, and then I continue doing what I was doing (with a screenshot being made and put into the auto-save-directory)



In 18 however a dialog pops up after it goes white and asks me interactively what I want to name the screenshot and what folder I want to put it in.



I find this very annoying since I put them all in the same folder and don't bother with filenames since the current date and time are usually descriptive enough (plus they're chronologically sorted). Can I change the behavior of gnome-screenshot or are there any alternative programs?










share|improve this question














bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • I started using scrot as Custom Shortcut using the Print key however if I want to screenshot only the current window (Alt+Print) this still invokes gnome-screenshot and that annoying dialog.

    – xjcl
    Sep 10 '17 at 19:39














2












2








2


1






I've specified an auto-save-directory in dconf-editor under org.gnome.gnome-screenshot however it still asks me for a save directory every time I take a screenshot.





In prior Linux Mint versions (17, 17.3, ...) it went like this: I press Print, the screen goes white, and then I continue doing what I was doing (with a screenshot being made and put into the auto-save-directory)



In 18 however a dialog pops up after it goes white and asks me interactively what I want to name the screenshot and what folder I want to put it in.



I find this very annoying since I put them all in the same folder and don't bother with filenames since the current date and time are usually descriptive enough (plus they're chronologically sorted). Can I change the behavior of gnome-screenshot or are there any alternative programs?










share|improve this question














I've specified an auto-save-directory in dconf-editor under org.gnome.gnome-screenshot however it still asks me for a save directory every time I take a screenshot.





In prior Linux Mint versions (17, 17.3, ...) it went like this: I press Print, the screen goes white, and then I continue doing what I was doing (with a screenshot being made and put into the auto-save-directory)



In 18 however a dialog pops up after it goes white and asks me interactively what I want to name the screenshot and what folder I want to put it in.



I find this very annoying since I put them all in the same folder and don't bother with filenames since the current date and time are usually descriptive enough (plus they're chronologically sorted). Can I change the behavior of gnome-screenshot or are there any alternative programs?







linux-mint cinnamon screenshot






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 10 '16 at 13:44









xjclxjcl

18114




18114





bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • I started using scrot as Custom Shortcut using the Print key however if I want to screenshot only the current window (Alt+Print) this still invokes gnome-screenshot and that annoying dialog.

    – xjcl
    Sep 10 '17 at 19:39



















  • I started using scrot as Custom Shortcut using the Print key however if I want to screenshot only the current window (Alt+Print) this still invokes gnome-screenshot and that annoying dialog.

    – xjcl
    Sep 10 '17 at 19:39

















I started using scrot as Custom Shortcut using the Print key however if I want to screenshot only the current window (Alt+Print) this still invokes gnome-screenshot and that annoying dialog.

– xjcl
Sep 10 '17 at 19:39





I started using scrot as Custom Shortcut using the Print key however if I want to screenshot only the current window (Alt+Print) this still invokes gnome-screenshot and that annoying dialog.

– xjcl
Sep 10 '17 at 19:39










1 Answer
1






active

oldest

votes


















0














Here is a workaround (tldr: delete default shortcuts and replace them with shortcuts that call scripts which activate gnome-screenshots and set the desired save path). See https://cialu.net/how-to-change-default-gnome-screenshot-savings-folder/ for complete instructions.



*edit to add more detail:
Per instructions given at the link above, referencing this bug https://bugzilla.gnome.org/show_bug.cgi?id=699642, this issue is not going to change. Here's how to work around it in case the link breaks in future.



1) Go to Keyboard Settings > Shortcuts > Screenshots. You'll see some shortcuts already assigned; the top three should be to save a full screenshot, save a screenshot of a window, and save a screenshot of an area.



2) Disable the default shortcut keys (by default PrintScreen Alt+PrintScreen and Shift+PrintScreen) for these commands by selecting the shortcut and pressing the Backspace key.



3)Now select the Custom Shortcuts menu, and make three new shortcuts for the same behaviors (save complete screenshot, one of just one window, or one of just the selected area). For the command for each shortcut type the command sh -c, followed by the path to the executable script you want to fire for that command.



example: sh -c '/home/user/.scripts/screenshot-full.sh'



would be my command to take a full screenshot



4)In the directory where you keep your executable shell scripts, (~/.scripts in the example) write scripts to perform each desired behavior.



examples:



full screen capture



#!/bin/bash
DATE=$(date +%F-%T)
gnome-screenshot -f /home/user/screenshot_directory/Screenshot-$DATE.png



window capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -w -f /home/user/screenshot_directory/Screenshot-$DATE.png



area capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -a -f
/home/user/screenshot_directory/Screenshot-$DATE.png



5) Make each script executable by running the chmod command.
examples:



sudo chmod a+x '/home/user/.scripts/screenshot-full.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-window.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-area.sh'



That's all there is to it. Now when you press the shortcut keys, the script will execute and the screenshots taken will be automatically saved to your chosen screenshot_directory.



(If your shell fu is strong, you can also do the same thing with a single script by having the shortcuts pass options to it. Developing this more elegant version is left as an exercise to the reader.)






share|improve this answer





















  • 1





    Can you provide a bit more detail?  People should be able to follow the steps by reading your answer — the page you linked to might go away.   (Leave the link in your post, to give credit to the source of the information.)

    – Scott
    Sep 30 '17 at 20:07











  • @scott, yes I can, and did. Thanks for the pull up. I hate it myself when I find what looks like the solution to my problem only to discover the link is broken and the answer doesn't give enough detail for me to duplicate the fix.

    – kendocode
    Oct 18 '17 at 2:45











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f329397%2fgnome-screenshot-doesnt-autosave-but-interactively-asks-for-a-save-directory%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Here is a workaround (tldr: delete default shortcuts and replace them with shortcuts that call scripts which activate gnome-screenshots and set the desired save path). See https://cialu.net/how-to-change-default-gnome-screenshot-savings-folder/ for complete instructions.



*edit to add more detail:
Per instructions given at the link above, referencing this bug https://bugzilla.gnome.org/show_bug.cgi?id=699642, this issue is not going to change. Here's how to work around it in case the link breaks in future.



1) Go to Keyboard Settings > Shortcuts > Screenshots. You'll see some shortcuts already assigned; the top three should be to save a full screenshot, save a screenshot of a window, and save a screenshot of an area.



2) Disable the default shortcut keys (by default PrintScreen Alt+PrintScreen and Shift+PrintScreen) for these commands by selecting the shortcut and pressing the Backspace key.



3)Now select the Custom Shortcuts menu, and make three new shortcuts for the same behaviors (save complete screenshot, one of just one window, or one of just the selected area). For the command for each shortcut type the command sh -c, followed by the path to the executable script you want to fire for that command.



example: sh -c '/home/user/.scripts/screenshot-full.sh'



would be my command to take a full screenshot



4)In the directory where you keep your executable shell scripts, (~/.scripts in the example) write scripts to perform each desired behavior.



examples:



full screen capture



#!/bin/bash
DATE=$(date +%F-%T)
gnome-screenshot -f /home/user/screenshot_directory/Screenshot-$DATE.png



window capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -w -f /home/user/screenshot_directory/Screenshot-$DATE.png



area capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -a -f
/home/user/screenshot_directory/Screenshot-$DATE.png



5) Make each script executable by running the chmod command.
examples:



sudo chmod a+x '/home/user/.scripts/screenshot-full.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-window.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-area.sh'



That's all there is to it. Now when you press the shortcut keys, the script will execute and the screenshots taken will be automatically saved to your chosen screenshot_directory.



(If your shell fu is strong, you can also do the same thing with a single script by having the shortcuts pass options to it. Developing this more elegant version is left as an exercise to the reader.)






share|improve this answer





















  • 1





    Can you provide a bit more detail?  People should be able to follow the steps by reading your answer — the page you linked to might go away.   (Leave the link in your post, to give credit to the source of the information.)

    – Scott
    Sep 30 '17 at 20:07











  • @scott, yes I can, and did. Thanks for the pull up. I hate it myself when I find what looks like the solution to my problem only to discover the link is broken and the answer doesn't give enough detail for me to duplicate the fix.

    – kendocode
    Oct 18 '17 at 2:45
















0














Here is a workaround (tldr: delete default shortcuts and replace them with shortcuts that call scripts which activate gnome-screenshots and set the desired save path). See https://cialu.net/how-to-change-default-gnome-screenshot-savings-folder/ for complete instructions.



*edit to add more detail:
Per instructions given at the link above, referencing this bug https://bugzilla.gnome.org/show_bug.cgi?id=699642, this issue is not going to change. Here's how to work around it in case the link breaks in future.



1) Go to Keyboard Settings > Shortcuts > Screenshots. You'll see some shortcuts already assigned; the top three should be to save a full screenshot, save a screenshot of a window, and save a screenshot of an area.



2) Disable the default shortcut keys (by default PrintScreen Alt+PrintScreen and Shift+PrintScreen) for these commands by selecting the shortcut and pressing the Backspace key.



3)Now select the Custom Shortcuts menu, and make three new shortcuts for the same behaviors (save complete screenshot, one of just one window, or one of just the selected area). For the command for each shortcut type the command sh -c, followed by the path to the executable script you want to fire for that command.



example: sh -c '/home/user/.scripts/screenshot-full.sh'



would be my command to take a full screenshot



4)In the directory where you keep your executable shell scripts, (~/.scripts in the example) write scripts to perform each desired behavior.



examples:



full screen capture



#!/bin/bash
DATE=$(date +%F-%T)
gnome-screenshot -f /home/user/screenshot_directory/Screenshot-$DATE.png



window capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -w -f /home/user/screenshot_directory/Screenshot-$DATE.png



area capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -a -f
/home/user/screenshot_directory/Screenshot-$DATE.png



5) Make each script executable by running the chmod command.
examples:



sudo chmod a+x '/home/user/.scripts/screenshot-full.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-window.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-area.sh'



That's all there is to it. Now when you press the shortcut keys, the script will execute and the screenshots taken will be automatically saved to your chosen screenshot_directory.



(If your shell fu is strong, you can also do the same thing with a single script by having the shortcuts pass options to it. Developing this more elegant version is left as an exercise to the reader.)






share|improve this answer





















  • 1





    Can you provide a bit more detail?  People should be able to follow the steps by reading your answer — the page you linked to might go away.   (Leave the link in your post, to give credit to the source of the information.)

    – Scott
    Sep 30 '17 at 20:07











  • @scott, yes I can, and did. Thanks for the pull up. I hate it myself when I find what looks like the solution to my problem only to discover the link is broken and the answer doesn't give enough detail for me to duplicate the fix.

    – kendocode
    Oct 18 '17 at 2:45














0












0








0







Here is a workaround (tldr: delete default shortcuts and replace them with shortcuts that call scripts which activate gnome-screenshots and set the desired save path). See https://cialu.net/how-to-change-default-gnome-screenshot-savings-folder/ for complete instructions.



*edit to add more detail:
Per instructions given at the link above, referencing this bug https://bugzilla.gnome.org/show_bug.cgi?id=699642, this issue is not going to change. Here's how to work around it in case the link breaks in future.



1) Go to Keyboard Settings > Shortcuts > Screenshots. You'll see some shortcuts already assigned; the top three should be to save a full screenshot, save a screenshot of a window, and save a screenshot of an area.



2) Disable the default shortcut keys (by default PrintScreen Alt+PrintScreen and Shift+PrintScreen) for these commands by selecting the shortcut and pressing the Backspace key.



3)Now select the Custom Shortcuts menu, and make three new shortcuts for the same behaviors (save complete screenshot, one of just one window, or one of just the selected area). For the command for each shortcut type the command sh -c, followed by the path to the executable script you want to fire for that command.



example: sh -c '/home/user/.scripts/screenshot-full.sh'



would be my command to take a full screenshot



4)In the directory where you keep your executable shell scripts, (~/.scripts in the example) write scripts to perform each desired behavior.



examples:



full screen capture



#!/bin/bash
DATE=$(date +%F-%T)
gnome-screenshot -f /home/user/screenshot_directory/Screenshot-$DATE.png



window capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -w -f /home/user/screenshot_directory/Screenshot-$DATE.png



area capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -a -f
/home/user/screenshot_directory/Screenshot-$DATE.png



5) Make each script executable by running the chmod command.
examples:



sudo chmod a+x '/home/user/.scripts/screenshot-full.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-window.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-area.sh'



That's all there is to it. Now when you press the shortcut keys, the script will execute and the screenshots taken will be automatically saved to your chosen screenshot_directory.



(If your shell fu is strong, you can also do the same thing with a single script by having the shortcuts pass options to it. Developing this more elegant version is left as an exercise to the reader.)






share|improve this answer















Here is a workaround (tldr: delete default shortcuts and replace them with shortcuts that call scripts which activate gnome-screenshots and set the desired save path). See https://cialu.net/how-to-change-default-gnome-screenshot-savings-folder/ for complete instructions.



*edit to add more detail:
Per instructions given at the link above, referencing this bug https://bugzilla.gnome.org/show_bug.cgi?id=699642, this issue is not going to change. Here's how to work around it in case the link breaks in future.



1) Go to Keyboard Settings > Shortcuts > Screenshots. You'll see some shortcuts already assigned; the top three should be to save a full screenshot, save a screenshot of a window, and save a screenshot of an area.



2) Disable the default shortcut keys (by default PrintScreen Alt+PrintScreen and Shift+PrintScreen) for these commands by selecting the shortcut and pressing the Backspace key.



3)Now select the Custom Shortcuts menu, and make three new shortcuts for the same behaviors (save complete screenshot, one of just one window, or one of just the selected area). For the command for each shortcut type the command sh -c, followed by the path to the executable script you want to fire for that command.



example: sh -c '/home/user/.scripts/screenshot-full.sh'



would be my command to take a full screenshot



4)In the directory where you keep your executable shell scripts, (~/.scripts in the example) write scripts to perform each desired behavior.



examples:



full screen capture



#!/bin/bash
DATE=$(date +%F-%T)
gnome-screenshot -f /home/user/screenshot_directory/Screenshot-$DATE.png



window capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -w -f /home/user/screenshot_directory/Screenshot-$DATE.png



area capture



#!/bin/bash
DATE=$(date +%Y-%m-%d-%H:%M:%S)
gnome-screenshot -a -f
/home/user/screenshot_directory/Screenshot-$DATE.png



5) Make each script executable by running the chmod command.
examples:



sudo chmod a+x '/home/user/.scripts/screenshot-full.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-window.sh'



sudo chmod a+x '/home/user/.scripts/screenshot-area.sh'



That's all there is to it. Now when you press the shortcut keys, the script will execute and the screenshots taken will be automatically saved to your chosen screenshot_directory.



(If your shell fu is strong, you can also do the same thing with a single script by having the shortcuts pass options to it. Developing this more elegant version is left as an exercise to the reader.)







share|improve this answer














share|improve this answer



share|improve this answer








edited Sep 5 '18 at 5:50









bubblemelon

33




33










answered Sep 30 '17 at 19:55









kendocodekendocode

11




11








  • 1





    Can you provide a bit more detail?  People should be able to follow the steps by reading your answer — the page you linked to might go away.   (Leave the link in your post, to give credit to the source of the information.)

    – Scott
    Sep 30 '17 at 20:07











  • @scott, yes I can, and did. Thanks for the pull up. I hate it myself when I find what looks like the solution to my problem only to discover the link is broken and the answer doesn't give enough detail for me to duplicate the fix.

    – kendocode
    Oct 18 '17 at 2:45














  • 1





    Can you provide a bit more detail?  People should be able to follow the steps by reading your answer — the page you linked to might go away.   (Leave the link in your post, to give credit to the source of the information.)

    – Scott
    Sep 30 '17 at 20:07











  • @scott, yes I can, and did. Thanks for the pull up. I hate it myself when I find what looks like the solution to my problem only to discover the link is broken and the answer doesn't give enough detail for me to duplicate the fix.

    – kendocode
    Oct 18 '17 at 2:45








1




1





Can you provide a bit more detail?  People should be able to follow the steps by reading your answer — the page you linked to might go away.   (Leave the link in your post, to give credit to the source of the information.)

– Scott
Sep 30 '17 at 20:07





Can you provide a bit more detail?  People should be able to follow the steps by reading your answer — the page you linked to might go away.   (Leave the link in your post, to give credit to the source of the information.)

– Scott
Sep 30 '17 at 20:07













@scott, yes I can, and did. Thanks for the pull up. I hate it myself when I find what looks like the solution to my problem only to discover the link is broken and the answer doesn't give enough detail for me to duplicate the fix.

– kendocode
Oct 18 '17 at 2:45





@scott, yes I can, and did. Thanks for the pull up. I hate it myself when I find what looks like the solution to my problem only to discover the link is broken and the answer doesn't give enough detail for me to duplicate the fix.

– kendocode
Oct 18 '17 at 2:45


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f329397%2fgnome-screenshot-doesnt-autosave-but-interactively-asks-for-a-save-directory%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt