Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have just migrated from Ubuntu 10.04 to 12.04. As most of the UI elements have been changed I don't know to add Force quit icon, which is needed for most of the not responding applications. So, how to add force quit icon in ubuntu 12.04?

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

In the terminal, run these commands:

  1. wget http://pastebin.com/raw.php?i=MHRX6KEV

    (If the contents of the URL above are not accessible, see the Reference section below.)

  2. mv Force_Quit.desktop ~/.local/share/applications/
  3. nautilus ~/.local/share/applications/

Now in the window that popped up, drag Force_Quit.desktop to the Unity launcher.

xkill will now be invoked every time you click on the new launcher icon.

                                  [Force Quit on the Launcher]

Source: How To Add A Force Quit Icon To The Unity Launcher - Ubuntu 11.10/12.04


Reference

If you do not have Internet access, the contents of http://pastebin.com/raw.php?i=MHRX6KEV is saved here:

[Desktop Entry]
Name=Force Quit
Comment=Force Kill an Unresponsive Running Application or Window
Exec=xkill
Icon=gnome-panel-force-quit
Terminal=false
Type=Application
StartupNotify=true

You can write the contents to Force_Quit.desktop by making the file with the command gedit ~/.local/share/applications/Force_Quit.desktop.

share|improve this answer
    
Why these much steps needed in Ubuntu 12.04. I did with a single click in 10.04. Is there any easy way for that? - @Deltik –  arulappan Aug 1 '12 at 17:21
    
I created a new file in the name of ForceQuit.desktop. But I couldn't open the file to copy the provided content. It says, "There was an error launching the application." –  arulappan Aug 1 '12 at 17:28
    
I opened the file via gedit and pasted the content. Finally, I got the Force Quit functionality. –  arulappan Aug 1 '12 at 17:32
1  
I edited the answer to make it easier to follow. –  Deltik Aug 1 '12 at 17:33
    
Your previous solution can be followed by even those who don't have the internet connection to access pastebin.com/raw.php?i=MHRX6KEV - @Deltik –  arulappan Aug 1 '12 at 17:36
show 1 more comment

A far easier way is to simply head over to your keyboard shortcuts, add a custom one to let's say F11, name it something like "Kill non-responsive windows" and with the command used xkill.

share|improve this answer
add comment

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.