![]() |
2009-12-20
, 12:31
|
|
Posts: 2,853 |
Thanked: 968 times |
Joined on Nov 2005
|
#2
|
![]() |
2009-12-20
, 13:31
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#3
|
3. Find the "powerup_memain_endcurrenttask" section in /etc/systemui/systemui.xml and add the following:
<menuitem priority="600" name="powerup_memain_endcurrenttask"> <return>10</return> <po>osso-powerup-shutdown</po> </menuitem>
![]() |
2009-12-20
, 13:42
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#4
|
Could you be a bit more explicit about how you add this? I currently have:
Do I add yours between the <menuitem> tags, or ..?Code:<menuitem priority="600" name="powerup_memain_endcurrenttask"> <return>10</return> <po>osso-powerup-shutdown</po> </menuitem>
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
![]() |
2009-12-20
, 16:08
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#5
|
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
![]() |
2009-12-20
, 16:55
|
|
Posts: 188 |
Thanked: 185 times |
Joined on Dec 2009
@ Finland
|
#6
|
The Following User Says Thank You to tuminoid For This Useful Post: | ||
![]() |
2009-12-20
, 16:57
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#7
|
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.
![]() |
2009-12-20
, 17:37
|
|
Posts: 188 |
Thanked: 185 times |
Joined on Dec 2009
@ Finland
|
#8
|
The Following User Says Thank You to tuminoid For This Useful Post: | ||
![]() |
2009-12-20
, 18:38
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#9
|
The Following User Says Thank You to kwotski For This Useful Post: | ||
![]() |
2010-06-10
, 10:45
|
Posts: 13 |
Thanked: 0 times |
Joined on May 2010
|
#10
|
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:
If anyone actually wants the source to this boring and short program, let me know.