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

List:       kde-core-devel
Subject:    Re: hostname() used in KApplication::launcher (fwd)
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-07-18 22:29:24
[Download RAW message or body]


On Wed, 19 Jul 2000, Christopher Molnar wrote:
> kdmdesktop generates a core dump.
... because of the abort() I made you add in KApplication:dcopClient.

> [root@thebox /root]# gdb kdmdesktop core
> (gdb) bt
> #0  0x40c05091 in kill () from /lib/libc.so.6
> #1  0x40c04d79 in raise () from /lib/libc.so.6
> #2  0x40c064f0 in abort () from /lib/libc.so.6
> #3  0x4039128c in KApplication::dcopClient (this=0xbffff6d4) at
> kapp.cpp:356
> #4  0x40045c81 in KSycoca::KSycoca () from /usr/lib/libksycoca.so.3
> #5  0x40046243 in KSycoca::self () from /usr/lib/libksycoca.so.3
> #6  0x400488d0 in KSycocaFactory::KSycocaFactory ()
>    from /usr/lib/libksycoca.so.3
> #7  0x4006348f in KImageIOFactory::KImageIOFactory ()
>    from /usr/lib/libksycoca.so.3
> #8  0x40080de8 in KImageIOFactory::self () from /usr/lib/libksycoca.so.3
> #9  0x40064388 in KImageIO::registerFormats () from
> /usr/lib/libksycoca.so.3
> #10 0x804b8eb in KCmdLineArgs::init () at kcmdlineargs.cpp:116
> #11 0x0 in ?? ()
> (gdb)


Here's the problem. kdmconfig, which runs before any user is logged in,
needs to be able to display background images. For that, it uses KBackgroundRenderer,
which in turns needs KSycoca for its image support, which in turn tries to register
to DCOP. Those last two step make no sense when no user is logged in - which
is the case for kdmdesktop.

Should kdmdesktop simply not use KImageIO ? All in all, the image formats we need
are all in Qt now... Someone points me to somebody using an EPS file for the background
behind his login manager :-)))

This would mean, a flag in KBackgroundRenderer, or letting kdesktop and kcmbackground
do the registration themselves, instead of it being done in KBackground[Renderer, AFAIK].

I don't see any other solution - except running a dcopserver as root which would really
not be a good solution.

Does anyone know if kdm actually calls kdmdesktop by itself ? kdm doesn't
seem to work when kdmdesktop crashes, and that's not good.

-- 
David Faure <david@mandrakesoft.com>
KDE Developer

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

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