[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Restoring session is extremly slow
From:       Matthias Ettrich <ettrich () trolltech ! com>
Date:       2002-07-10 9:55:43
[Download RAW message or body]

On Tuesday 09 July 2002 21:45, Ferdinand Gassauer wrote:
> On Tuesday 09 July 2002 15:25, Matthias Ettrich wrote:
> > On Tuesday 09 July 2002 07:05, Ferdinand Gassauer wrote:
> > > Hi!
> > > Why ?
> > > IMHO this was much faster a while ago - now the percentage moves "2-4%"
> > > per second an a AMD 1200 using 100% CPU.
> >
> > 2-4%?
> >
> > Are you saying you typically restore between 25 and 50 applications?
>
> Ah! I like that idea ;-)
> To be serious - there was no "open" application except xconsole and
> gkrellm. But after starting the KDE desktop I get this process list with 54
> konsole sessions and with every start there is one session more !!!!!????
> They do not survive a logout/login, they are closed and started again.
> But I do NOT see them in the taskbar, there is only ONE konsole session
> shown
>
> I think the following happens:
> I have the attached desktop file in autostart and it runs the attached
> script in a konsole, asks for some data entries closes the window, but does
> not terminate the process.
> Any idea to change this behaviour?

General rule: Things started from autoStart shouldn't do session management.

autoStart(int) is implemented in klauncher and launched via dcop from 
ksmserver.

Have a look at klauncher.cpp, function KLauncher::start_service. It knows when 
a service gets started from autoStart.

Now, we do not want to set SESSION_MANAGER to be undefined when launching 
things in auto start, because we still want a graceful shutdown. But maybe we 
want a command line argument in KDE to set the restartHint to RestartNever?

Waldo, any thoughts on this one?



 Matthias
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic