From kde Mon Apr 08 05:54:43 2013 From: Kevin Krammer Date: Mon, 08 Apr 2013 05:54:43 +0000 To: kde Subject: Re: [kde] How to learn about all those configuration file values? Message-Id: <201304080754.51328.krammer () kde ! org> X-MARC-Message: https://marc.info/?l=kde&m=136541579120860 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============5366935984122088349==" --===============5366935984122088349== Content-Type: multipart/signed; boundary="nextPart5555400.Kxt0vxkqzO"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart5555400.Kxt0vxkqzO Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Sunday, 2013-04-07, Stephen Dowdy wrote: > Kevin Krammer wrote, On 04/07/2013 03:34 AM: > > A lot of application config are nowadays described by a meta config fil= e, > > file extension being .kfcg >=20 > ------------------^^^^^ >=20 > > They are used to describe all possible values, their types and defaults > > and are used to generate config access code instead of manually writing > > it (manually written config access code is prone to typos in setting > > names). >=20 > ------------------------------------------^^^^^^^^^^^^^^ >=20 > Kevin, >=20 > Heh, Irony Oops! You typo'd the file extension (.kfcg) should be > .kcfg (that sequence of letters is always a tough one) Haha, indeed :) > $ kde4-config --path kcfg > /home/sdowdy/.kde/share/config.kcfg/:/usr/share/kde4/config.kcfg/ >=20 > While i'd just sort of discovered these in looking in more depth in > trying to determine where these might be found, i never even noticed > that there was a 'kcfg' path, and hadn't looked in detail... Ah, I hadn't thought about that either. > > But as a side affect the also provide a kind of documentation of the > > application's configuration capabilities. >=20 > Yep, cool.. (where's 'kxmleditor' when you need it? anybody know of > a good replacement XML visualization tool? ) I usually just open in Kate and switch highlighting manually to XML. Could be interesting to create a Kate highlighting file specifically for kc= fg=20 though :) > So, i presume these files are simply compile-time reference material > when placed in that directory, and are not runtime referenced by the > application. (i.e. it's going to be up to the "distro" maintainer to > ensure they get put there so the average user can reference them, to > see what key values may have been default-overridden at compile-time > in the packaging.) Right. They are only required a compile-time but my guess is they are installed fo= r=20 documentation purposes, like what we are discussing here. Cheers, Kevin =2D-=20 Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring --nextPart5555400.Kxt0vxkqzO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iD8DBQBRYlujnKMhG6pzZJIRAgDGAKCC000DP9cmZDBzn7RrVWtKpI4ZVwCaAt/t YPFbt7ybxYd4Kkz/K8KcAvo= =2MvP -----END PGP SIGNATURE----- --nextPart5555400.Kxt0vxkqzO-- --===============5366935984122088349== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html. --===============5366935984122088349==--