Re: Way to remove a GConf dir ?

        Hello again,

Emmanuele Bassi a écrit :
Just as a reminder: if it's not in the perldoc for the module, then it's
very unlikely that a method exists anyway; the API perldoc for every
wrapper module (as Gnome2::GConf::Client) is automatically rebuilt every
time a module is compiled.

        Thank you for the advice...

        Anyway, that's great, it works ;-) So if anybody wants to know, to
delete a dir you just have to $client->unset() all keys in it...

I've never had to do it - breaks backward compatibility and stuff - but
thanks. I'll add it into the Gnome2::GConf::Client API reference.

I played with this again and I think I understand better: The keys are set to 'no value' (as shown in the GConf editor) and the directory is present *until something is synced*, e.g. when you quit the script or use $client->suggest_sync. After this the directory is removed. Note that GConf Editor does not reflect the directory remove in real time, you must close it and reopen it.

 -/ O \----------------------------------------
| |/ \|       Alexandre (Midnite) Jousset      |

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]