Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1682  / 3 Years ago, wed, july 21, 2021, 9:42:17

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?


More From » gnome

 Answers
0

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..



[#37210] Thursday, July 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
variark

Total Points: 82
Total Questions: 114
Total Answers: 122

Location: Sweden
Member since Mon, May 8, 2023
1 Year ago
variark questions
Wed, Nov 3, 21, 13:30, 3 Years ago
Sun, Jan 8, 23, 16:05, 1 Year ago
Thu, Dec 15, 22, 02:10, 1 Year ago
Sun, Jun 26, 22, 12:20, 2 Years ago
Tue, Dec 14, 21, 15:40, 2 Years ago
;