3

First of all, sorry for my English.

I'm trying to add an icon in the gnome-shell's dock (with Ubuntu 13.04 and 13.10) for the command line app xkill, but it doesn't work, since it is a terminal application. But if I create the menu entry as a "terminal application" (writting it in a .desktop file or throghout the "Main Menu" application), it opens, consequently, a terminal with the message: "Select the window bla bla bla....".

What I really want is a more natural and direct way for closing a blocked window by force, and not by means of a terminal.

For older versions of gnome-shell there was a little extension which made it (adding a little icon in the top bar), but it exists no longer (or I haven't found it).

Solution? Thanks.

ABu
  • 255

3 Answers3

3

Create a launcher with the command gnome-desktop-item-edit --create-new ~/Desktop as suggested by @maythux, but just add /usr/bin/xkill as the command. (Do NOT use gnome-terminal -e).

This creates the launcher on the desktop.

Simply drag it to the dock and remove it from the desktop if you like.

enter image description here

1

I use Easystroke Gesture Recognition for that purpose. Install it then pick up Gesture Button >button 3 from preferences tab, it lets you run commands dragging right button and drawing a figure like line, circle or whatever you like then switch to Action tab and record a guesture dragging right button, finally add commad

sudo xkill

that's all.

Whenever you want to kill a frozen window, just drag right button and draw the shape you attained, you will get a x shape cursor to kill the window.

kenn
  • 5,232
1

You can do this trick to get your need(it still use the terminal but you have not to take care about.)

First create a launcher on desktop by using the old GUI dialog.

Using ALT+F2 type:

gnome-desktop-item-edit --create-new ~/Desktop

This will start the dialog( Create launcher):

enter image description here

In the Name field put any name you like.

In the command field put the command gnome-terminal -e "xkill" or if you have other terminal emulators you can use like xterm or whatever.

Now drag and drop the created launcher to the Unity launcher and try it :).


Another Solution:

Here is a scipt to do what you like and they have a unity launcher and you can learn how to install and use

Maythux
  • 87,123