Session restoration and autostart
Lubos Lunak
l.lunak at suse.cz
Wed Sep 14 17:32:03 BST 2005
On Tuesday 13 of September 2005 23:25, David Jarvie wrote:
> On Monday 12 Sep 2005 14:40, Lubos Lunak wrote:
...
> > Ok, so much for the theory. In practice it's not so, because those
> > features
> > are not implemented in ksmserver, and SM support in most apps is pretty
> > broken, probably because people don't really get this sessions thing. And
> > autostart seems to be much simpler to understand.
> >
> > Either way, how exactly would you want those two work together? And,
> > while I'm at it, why do you definitely need autostart?
>
> I need to ensure that kalarm starts in the system tray at login, so that
> alarms are enabled. But I also want to restore any visible windows, to make
> it act like a normal session-restored program.
Hmm. I suppose tray apps can't be simply normally session-managed just like
all other applications *shrug*. Well, you can try doing the isRestored() fix,
I don't think it can make it worse.
>
> > > How about simply making KApplication::isRestored() return true during a
> > > session manager activation, even if the program was already running
> > > before that? Would that work?
> >
> > Technically, yes, it'd mean adding similar code like there's already for
> > startup notification ('asn'). In practice ... I have no idea *shrug*.
--
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27 tel: +420 2 9654 2373
190 00 Praha 9 fax: +420 2 9654 2374
Czech Republic http://www.suse.cz/
More information about the kde-core-devel
mailing list