Reply
Thread Tools
Posts: 1,427 | Thanked: 2,077 times | Joined on Aug 2009 @ Sydney
#1
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.
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.

Is this even possible?
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#2
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.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 
tuminoid's Avatar
Posts: 188 | Thanked: 185 times | Joined on Dec 2009 @ Finland
#3
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().
__________________
My wiki: User:Tuminoid
cpumem-applet: home | packages - status: 0.0.3 in Extras

cell-modem-ui: home | packages - status: 0.5.1-1 in Extras
nowplayingd: home | packages - status: 0.1-2 in extras-devel
custom-pwkmenu: home - no packages yet.
 
Posts: 1,427 | Thanked: 2,077 times | Joined on Aug 2009 @ Sydney
#4
Originally Posted by pycage View Post
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...


Originally Posted by tuminoid View Post
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...)
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:49.