Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using the default screenshot application that comes with Ubuntu gnome-screenshot

When I was using it earlier to take screenshots of the lock screen I had set a long time delay, but forgot to change it back after I'd finished. When I next took a timed screenshot I had to wait a long time for it to take because the delay was still set so long.

Clicking the icon to relaunch the screenshot application has no effect whilst the timer is in effect, I imagine there is probably a simple terminal command to shut down an application, but I don't know it! Is there a way to do this?

share|improve this question
    
Total guess but 'gnome-screenshot --quit' in terminal? –  Tom Brossman Jun 28 '12 at 22:16
    
@TomBrossman this gives an interesting output of ** (gnome-screenshot:23565): CRITICAL **: Unable to parse arguments: Unknown option --quit –  coversnail Jun 29 '12 at 13:37

2 Answers 2

up vote 2 down vote accepted

The one-liner you're looking for is:

kill `pidof gnome-screenshot`

pidof is preferable here compared to pgrep, killall and some invocations of ps, which only consider the first 15 characters of a command name and can choke on hyphens. Be careful not to kill the similarly prefixed gnome-screensaver if you use these..

share|improve this answer

Step1. Looking for the process numbers of gnome-screenshot by ps ax command in the terminal.

Step2. Execute kill <process_number>.

Step3. Insert the following command from the terminal:

gnome-screenshot -i

Then, you can set Grab after a delay 0 second.

share|improve this answer
    
The question asked how to cancel a screenshot, this command just launches the application –  coversnail Jun 29 '12 at 17:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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