Author Topic: xkill does not work from LXDE panel [Solved-Mostly]  (Read 1776 times)

Offline vger7

  • Full Member
  • ***
  • Posts: 68
xkill does not work from LXDE panel [Solved-Mostly]
« on: February 11, 2012, 04:37:35 PM »
I've installed xkill and it works fine.

However when I add it to the LXDE panel
it does nothing.

What am i missing here?
Thanks
« Last Edit: February 18, 2012, 01:10:11 PM by vger7 »

Offline princethrash

  • Jr. Member
  • **
  • Posts: 22
Re: xkill does not work from LXDE panel
« Reply #1 on: February 12, 2012, 07:42:27 AM »
By chance, are you trying to kill a window with root privileges?  I think this will require to run xkill with sudo (or gksu or gksudo if you're doing it from a gui).

I installed xkill and put it on my main menu.  When run, my mouse is changing to an "X" shaped cursor icon, and I can click on any non-root window to destroy it.


Offline vger7

  • Full Member
  • ***
  • Posts: 68
Re: xkill does not work from LXDE panel
« Reply #2 on: February 12, 2012, 08:25:39 AM »
No, it's not a privilege issue, and it works fine from the menu.

It just does nothing if I try to launch it from the panel,



Online JohnW_57

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2116
Re: xkill does not work from LXDE panel
« Reply #3 on: February 12, 2012, 09:13:36 AM »
Just a warning: http://www.xfree86.org/current/xkill.1.html

Quote
Xkill is a utility for forcing the X server to close connections to clients. This program is very dangerous, but is useful for aborting programs that have displayed undesired windows on a user's screen. If no resource identifier is given with -id, xkill will display a special cursor as a prompt for the user to select a window to be killed. If a pointer button is pressed over a non-root window, the server will close its connection to the client that created the window.


Kill a application with the system monitor is a better and more save option.

JohnW
« Last Edit: February 12, 2012, 09:18:48 AM by JohnW_57 »
PCLinuxOS 2013 KDE4 (64 bit) on: home build system:  Intel Core 2 Quad (q6700) (2.66ghz), Asus P5K motherboard, 4 gig ddr2 memory, Asus Nvidia Geforce GTS 250 1024 mb gddr3, Crucial M4 128 SSD,  2x Samsung 500 gig HDD (sata), TSSTcorp CDDVDW SH-224BB.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: xkill does not work from LXDE panel
« Reply #4 on: February 12, 2012, 09:25:22 AM »
Use lxtask to kill - right click the entry and choose kill.     

Offline princethrash

  • Jr. Member
  • **
  • Posts: 22
Re: xkill does not work from LXDE panel
« Reply #5 on: February 12, 2012, 09:28:39 AM »
vger7,

They might be right about safety, but computers are like slaves, you do what you want to them until they manage to escape.  Besides, it's hard to beat the convenience of a 1-click Super Kill.

That's weird that it won't work from the panel.  When I get back home I'm going to see if I can reproduce this.

Offline vger7

  • Full Member
  • ***
  • Posts: 68
Re: xkill does not work from LXDE panel
« Reply #6 on: February 12, 2012, 09:42:54 AM »
The problem is almost always caused by a misbehaving or
hung-up browser (usually running flash).

When that happens it can't get the menu to open or even get back to the desktop.

Also a 1 click kill on the panel is much easer to explain to my young grandson.

I've used xkill before without any adverse effects.
It's a better solution that restarting x altogether.





Offline princethrash

  • Jr. Member
  • **
  • Posts: 22
Re: xkill does not work from LXDE panel
« Reply #7 on: February 12, 2012, 10:06:50 AM »
Just to clarify, you are talking about launching xkill from the "Application Launch Bar" plugin for lxpanel?

Is xkill in your main menu?  Application Launch Bar requires the program in question to be in the main menu, for some insane reason that the Elders have not explained to us.

I set xkill up in the launch bar, and then it stopped working.  Then I realized it required a double-click, not a single click.  Which blew my mind.



Offline vger7

  • Full Member
  • ***
  • Posts: 68
Re: xkill does not work from LXDE panel
« Reply #8 on: February 12, 2012, 10:55:19 AM »
Yes, I'm trying to launch it from "Application Launch Bar" plugin for lxpanel"

The application is located under: More Applications, Monitoring

Are you saying it needs to reside elsewhere?



Offline princethrash

  • Jr. Member
  • **
  • Posts: 22
Re: xkill does not work from LXDE panel
« Reply #9 on: February 12, 2012, 11:31:38 AM »
Vger7,

I'm sure it's fine, if it is allowed to appear on the Application Launch then that should already prove the link is working.

When there is a misbehaving browser, can you still run the application from the main menu successfully, or is only the Application Launch not working?

Offline vger7

  • Full Member
  • ***
  • Posts: 68
Re: xkill does not work from LXDE panel
« Reply #10 on: February 12, 2012, 11:55:19 AM »
I suspect something else is going on here, but need to run
some errands at the moment.

Hopefully by then the boss, my grandson, will let me use his
machine again to check some things out.

Thanks for working with me on this.  :D


Offline princethrash

  • Jr. Member
  • **
  • Posts: 22
Re: xkill does not work from LXDE panel
« Reply #11 on: February 12, 2012, 12:27:49 PM »
It's sounding like the issue might be flash related.
If the main menu xkill link still works during flash problems, we know xkill will work and it's some issue with the app launcher + browser/flash issues. 

If this is true, you could always run xkill via a tray icon instead of through the app launcher.  This would require a short script which I think I could write fairly easily.

Offline vger7

  • Full Member
  • ***
  • Posts: 68
Re: xkill does not work from LXDE panel
« Reply #12 on: February 12, 2012, 01:11:43 PM »
Ok,
Just to make sure there is no misunderstanding,
I've placed xkill on the LXDE Panel.

I believe that the "Application Launch Bar" plugin for lxpanel"
is the same thing. yes?

Here is a screen shot:

It's the bulleye.

Here is what the xkill.desktop file looks like:

[Desktop Entry]
Encoding=UTF-8
Name=XKill
Comment=Kill a client by its X resource
Exec=/usr/bin/xkill
Icon=xkill
Terminal=false
Type=Application
StartupNotify=true
Categories=System;Monitor;X-MandrivaLinux-System-Monitoring;

I've also launch the Lxtask Manager to see what happens and it does not
show it starting/running when the icon is clicked or double clicked.
But like I said, it does work from the menu.

Now when I have the browser problem, I can't get to the menu to start. The system seems overloaded.
I was hoping this would be a way to launch it even if it took a few seconds.


Offline princethrash

  • Jr. Member
  • **
  • Posts: 22
Re: xkill does not work from LXDE panel
« Reply #13 on: February 12, 2012, 01:27:02 PM »
Wow, this seems like a deeper issue, considering its crippling even the main menu.

I tried writing a script that uses xkill, and it still required 2 clicks for some reason.

I would personally start troubleshooting your browser.

Sorry I can't help more.


Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11568
  • ----IOFLU----
Re: xkill does not work from LXDE panel
« Reply #14 on: February 12, 2012, 01:34:10 PM »
Does Ctrl+Alt+Esc work? It does with KDE. I never launch xkill from an icon, in either the menu or on a panel.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...