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

List:       kde-devel
Subject:    Re: Finding filenames of KConfig objects
From:       "Petter E. Stokke" <gibreel () project23 ! no>
Date:       2003-07-22 0:43:14
[Download RAW message or body]

On Mon, 2003-07-21 at 23:36, Waldo Bastian wrote:
> -----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.

That worked like a charm. Thanks. :)

-- 
Petter E. Stokke <gibreel@project23.no> http://www.gibreel.net/
PGP key: http://www.gibreel.net/key.asc
Fingerprint: 4FF3 12BD 692A 0FFF 984F  78DA 4776 81FB 1906 3A9F

 
>> 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