GNOME Bugzilla – Bug 712692
server: Add a mechanism to make it persistent
Last modified: 2014-01-27 14:30:16 UTC
Unless there are some clients connected to it, the server quits immediately when it becomes idle. This is a good thing. However, sometimes, usually during development, it is convenient to be able to turn this off. eg., empathy, telepathy and gnome-online-miners use *_PERSIST environment variables to disable this. Since gnome-terminal already uses command line arguments for such development options maybe we can use them instead.
Created attachment 260257 [details] [review] server: Add a mechanism to make it persistent
How about an option for setting g_application_set_inactivity_timeout() instead, would that work for your usecase?
(In reply to comment #2) > How about an option for setting g_application_set_inactivity_timeout() instead, > would that work for your usecase? That would not let us add an infinite timeout, because I want to control the lifetime of the server by hitting Ctrl+C and restarting it whenever needed. However, I don't really have a strong opinion on this. I can live with locally adding the persistence as some kind of throw away debug code when I need to.
Given that GApplication waits up to 10 seconds for the first activation message to arrive, this isn't that big a problem in practice. With time I have learnt that I do not really need an infinite timeout.