![]() |
End current task - extreme
1 Attachment(s)
The End current task addition to the power off menu is a nice one. But it's too "nice" for my liking - it just sent a close window request. I disliked that. I wanted the program to be killed. Enter "top_killa".
Abusing systemui's ability to run processes via D-Bus, this program will kill the program which has its toplevel window on the screen. 1. gunzip top_killa.gz into /usr/bin 2. Put the following into /usr/share/dbus-1/services/com.qwerty12.top_killa.service: Quote:
Quote:
If anyone actually wants the source to this boring and short program, let me know. |
Re: End current task - extreme
I hadn't even *seen* the new option in the menu... thanks ! :-)
|
Re: End current task - extreme
Quote:
Code:
<menuitem priority="600" name="powerup_memain_endcurrenttask"> Quote:
|
Re: End current task - extreme
Quote:
I'll upload the source in a few hours (sorry, I won't be able to get to my computer before then) but all the program does is get the X11 root window, get the value of the "_MB_CURRENT_APP_WINDOW" property and get the value of the "_NET_WM_PID" property using the XID given by the current app window property. |
Re: End current task - extreme
Quote:
|
Re: End current task - extreme
Actually its not systemui that kills the task (its run as user, it doesn't have privileges to do it), but window manager. Why it takes so long to kill something (and some cases fail) is it plays ping-pong with target app with WM_PINGs and only non responding apps get booted.
This is revised in upcoming service release and SIGKILL is used to guarantee killing is done properly. |
Re: End current task - extreme
Quote:
Although you do raise a good point about being root... Maybe I should make top_killa setuid... |
Re: End current task - extreme
Quote:
|
Re: End current task - extreme
Thanks for the source, qwerty12.
Also, just to report that I've installed this as indicated and tested it (once! on the browser) with every indication of success. Also: great app name ;) |
End current task - basic
Hi!
I have a self-made application that doesn't get the "End current task" onto the power-switch menu. Because of that, it failed Ovi-testing (plus one another problem). How do I get the menu item for my X-Window application? |
All times are GMT. The time now is 19:23. |
vBulletin® Version 3.8.8