xfce rc & python

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Sat Mar 25 19:56:17 CET 2006


Danny Milosavljevic wrote:
> Really? The problem I have is how to get the garbage collector call
> xfce_rc_close (_and_ xfce_rc_close has the side effect of saving). This
> is going to hurt...

Just add an explicit close() function to the python bindings and
invalidate the python object afterwards (i.e. make all calls fail).

> But I guess pyxfce plugins could just save to ini files instead,
> However, then two different file formats would be in use
> in .config/xfce4/panel/ . Hmmm...

xfce-rc does a bit more than just parsing ini files (that could be done
in 100-200 lines). Plain ini files should do the job for pyxfce panel
plugins, tho.

> cheers,
>   Danny

Benedikt



More information about the Xfce4-dev mailing list