View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#1
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:
[D-BUS Service]
Name=com.qwerty12.top_killa
Exec=/usr/bin/top_killa
3. Find the "powerup_memain_endcurrenttask" section in /etc/systemui/systemui.xml and add the following:
<callback service="com.qwerty12.top_killa" path="/com/qwerty12/top_killa" interface="com.qwerty.top_killa" method="top_application" bus="session" autostart="true">
<argument type="boolean">true</argument>
</callback>
4. Reboot and, now, using End current task will kill the program instead of just waiting for to end and giving you a "Do you want to close <whatever>?" after 20 years.

If anyone actually wants the source to this boring and short program, let me know.
Attached Files
File Type: gz top_killa.gz (1.8 KB, 110 views)
 

The Following 8 Users Say Thank You to qwerty12 For This Useful Post: