maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   A way to lock an app so that it cannot be closed? (https://talk.maemo.org/showthread.php?t=38540)

jakiman 2009-12-27 07:22

A way to lock an app so that it cannot be closed?
 
I have an app which I would like to have it running ALL the time as when closed, I have to go through a few hoops to get it back to that state.

But it's so easy to accidently close the app from the task switcher. :eek:
Is there a way so that it cannot be closed from the task switcher?

I would love a locking feature in the task switcher where the X button can be disabled for certain apps. :D

Is this even possible?

pycage 2009-12-27 14:27

Re: A way to lock an app so that it cannot be closed?
 
It is possible but when the task switcher detects that an app cannot be closed, it will ask you if it should kill the process.

tuminoid 2009-12-27 18:25

Re: A way to lock an app so that it cannot be closed?
 
I think there is some API for task-switcher, but likely there is no API for disabling close button in switcher view.

One option which may be viable in your case, is setting window not to show in task-switcher at all.. You can do that with gtk_window_skip_taskbar_hint().

jakiman 2009-12-27 22:35

Re: A way to lock an app so that it cannot be closed?
 
Quote:

Originally Posted by pycage (Post 442957)
It is possible but when the task switcher detects that an app cannot be closed, it will ask you if it should kill the process.

I see. Is it some command I can run in the xterminal to not allow it to be closed?
I wonder if there is also a way to disable that "not responding" warning...


Quote:

Originally Posted by tuminoid (Post 443111)
I think there is some API for task-switcher, but likely there is no API for disabling close button in switcher view.

One option which may be viable in your case, is setting window not to show in task-switcher at all.. You can do that with gtk_window_skip_taskbar_hint().

So from what you are saying, ot seems hiding the close button is not possible at all?

Your other suggestions of not showing the task switcher sounds to me like it'll not show ANY active tasks via the gui. Is this correct? (Which isn't something I want either as I want to switch tasks via gui. Just not accidently close one or two of them...)


All times are GMT. The time now is 08:14.

vBulletin® Version 3.8.8