KHTMLPart exits app in custom display manager (kdeinit is not started)

David Faure faure at kde.org
Mon Feb 10 12:07:08 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 06 February 2003 02:55, Daniel Parisien wrote:
> I am coding a display manager that has a KDE greeter app for logging in. Since 
> kdeinit is not started when the display manager loads the greeter app, the 
> line of code that instantiates KHTMLPart causes the application to exit with 
> error code 1. 

Your greeter uses KHTML?

> It may not be due to kdeinit not being started (which means dcopserver is not 
> running), but that's my best guess so far. Does KHTMLPart require DCOP?

Yes. See m_dcopobject = new KHTMLPartIface( this ); in khtml_part.cpp:353.
Maybe we need a new constructor argument, or a new value for GUIProfile,
that says "no dcop please"....

> Does 
> anyone know a reason why KHTMLPart would exit? A grep through kdelibs/khtml 
> found nothing...
Sure, we never exit() from KDE code, especially libs, this would be very bad :)
But make sure to call kapp->disableAutoDcopRegistration() as early as possible,
then test if this fixes it, and if not, disabling the above dcopobject 
creation might be necessary.

- -- 
David FAURE, faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+R5Xs72KcVAmwbhARAt5tAKCcSBAbBgYOht7wtjItijhuSqMerACeNAgD
T+OxqTetkk+wvfL32rBE7Mc=
=zRlC
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list