--===============1735592642== Content-Type: multipart/signed; boundary="nextPart6097699.cP7FhZcCYi"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart6097699.cP7FhZcCYi Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 25 August 2007, Kelly wrote: > On Saturday, August 25, 2007 8:35:46 am Kevin Krammer wrote: > > They either use KStandardDirs or a class that does this internally, e.g. > > KConfig > > Yeah, I ended up at KStandardDirs after following the trail. But what I > couldn't figure out is how KStandardDirs itself knows what directories are > the right ones. Environment variables, their defaults and relative paths, where the default= s=20 usually depend on paths specified at build time. The main environment variable for this is KDEDIRS. Quite like PATH it is a= =20 list of (colon separated) directories, where the order indicates the=20 respective priority. Then, depending on the resource, there is an associated relative=20 path/subdirectory, e.g. share/apps/ KDE application data config/ KDE configs lib/kde3 (lib/kde4) KDE plugins (as a resource called modules) basically KDEHOME (default $HOME/.kde/) is also such a base directory, the = one=20 with highest priority. kde-config (kde4-config) is a nice command line tool which one can use to=20 determine such paths for example for using in scripts (the KDE start script= =20 startkde uses this as well, at least it does in KDE3) Cheers, Kevin =2D-=20 Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring --nextPart6097699.cP7FhZcCYi Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBG0KLznKMhG6pzZJIRAvxHAJ4gFYXLrvv45V68EcH//1ndWevtoQCdFY+C tzA60Mi0ralLR78ohkz+7A8= =3YTH -----END PGP SIGNATURE----- --nextPart6097699.cP7FhZcCYi-- --===============1735592642== 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 << --===============1735592642==--