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 am searching for a newuser-friendly way to kill non-responsive GUI applications under Unity.

I looked over the shoulder of a new Unity user who tried to use gscan2pdf - and gscan2pdf seems to be really broken - after not much tinkering it consumed much CPU und memory, the PC began trashing and the user needed to immediately kill the gscan2pdf GUI which was full-screen, non-responsive and had the focus.

Ok, I know some ways how to do it:

  • Hit Alt+F2 and type xkill -> select the window
  • Hit Alt+F2 start xterm, use top or pgrep and then kill PID or directly use pkill

Both are ways which are not very intuitive for GUI centric users.

Is there some Unity shortcut to get something like xkill?

Or is the best GUI-way to add a top-like GUI to the Unity-starter? And which one?

share|improve this question
You could define a shortcut keybinding for xkill.. –  nitstorm Dec 27 '11 at 13:04
@nitstorm, ok, post how to do it as answer and I'll up-vote it. –  maxschlepzig Dec 27 '11 at 13:10
Posted with screenshots. –  nitstorm Dec 27 '11 at 13:26
add comment

4 Answers

up vote 5 down vote accepted

You could create a keyboard shortcut for xkill.

  1. Type keyboard in the Unity Dash and click the icon. Select the shortcuts tab.

  2. There, scroll down to the custom shortcuts section and click on the + button

  3. Now name your shortcut something and let the command be xkill and then click ok.

  4. Finally click on the xkill shortcut and press the desired key-combo to assign a shortcut to it and that's it :)
  5. Pressing the keyboard shortcut will activate xkill whenever you need it.



share|improve this answer
add comment

The best way I find is using terminal window :

goto terminal :

sudo ps -aux | grep "name of application"

note down the process ID

sudo kill -9 "processID"

since, If GUI application becomes unresponsive, for time-being it slows down the X(GUI) and all actions would be slowed down, so any gui action for closing the process will be slow.

share|improve this answer
The OP doesn't want the kill command, he has specifically stated so in the second bulleted point. –  nitstorm Dec 27 '11 at 13:05
Wow, this is bad advice on several different levels - 1. I asked for a GUI or GUI-relatic solution for killing a task 2. ps ... | grep - there is the command pgrep, which is also mentioned in the question 3. kill -9 sends SIGKILL under which the program has no chance to terminate in a gracious way - usually one should always try kill PID first - this sends SIGTERM - only if the process does not terminate on SIGTERM, one should issue a kill -9 PID –  maxschlepzig Dec 27 '11 at 19:30
add comment

Didn't try it by myself, but this small script looks useful. It adds a "Force quit" option to the unity launcher.

share|improve this answer
add comment

Your Answer


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.