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

List:       kde-devel
Subject:    Re: Finding filenames of KConfig objects
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-07-21 21:36:10
[Download RAW message or body]

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

On Monday 21 July 2003 23:04, Petter E. Stokke wrote:
> Is there a way to determine the exact filesystem path to which a KConfig
> object refers (ie. the file to which it reads/writes)? I thought I'd try
> to be clever and have my application automatically detect even manual
> changes to its config file by using KDirWatch, but my inability to come
> up with any way to figure out which file to watch kind of defeats it.

It reads from a number of files, but the one most likely to change is the one 
to which it writes its changes. You can find that one with:
  locateLocal("config", file);

Where file is the argument that was passed to the KConfig constructor.

> Or is there a better way to do what I'm trying to do?

No, but I will try to add something for KDE 3.2.

Cheers,
Waldo
- -- 
bastian@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/HFzKN4pvrENfboIRAq5FAJ4myy/pZB3ITUIRyNTlpMW97Jb0kACgqEpO
k08s8cNCHJV7uj3VNmpxY1o=
=Bj1b
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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