--===============0823319716== Content-Type: multipart/signed; boundary="nextPart1628854.PQZeDCU8If"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1628854.PQZeDCU8If Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 14 February 2007 01:52, Matthew Allen wrote: > Hi, > > I've got an xlib application that I want to make "kde compatible" in the > sense that it'll use KDE settings when running under KDE but happily run > outside KDE as well. To do this I used to just read the relevant config > files and parse out information like global font settings and colours etc. > But this is kinda hard to maintain and not really the smart thing to do. = So > I've given that up and written a little shared library that directly links > to KDE's libraries, so that I can use the KDE api's to query the infomati= on > I need. In the case that my app is running under KDE it can dynamically > load my little add-on. In some cases it might be easier to create a helper KDE application, which= =20 gets all the information you need and passes it back to calling application= =20 as its output. Of course the disadvantage is that it takes longer than using a library, bu= t=20 it is also more robust, since a crash of the helper can't crash your=20 application. Cheers, Kevin =2D-=20 Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring --nextPart1628854.PQZeDCU8If Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBF0wI4nKMhG6pzZJIRApMdAJ90HtBh+ANBnYmPA/pgXIGiFAPjuQCeJ1dX wlARvWrLUBh7fbzlLGkf+NQ= =E4ju -----END PGP SIGNATURE----- --nextPart1628854.PQZeDCU8If-- --===============0823319716== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0823319716==--