xfce rc & python

Danny Milosavljevic danny.milosavljevic at liwest.at
Sat Mar 25 19:44:23 CET 2006


Hi,

Am Samstag, den 25.03.2006, 19:28 +0100 schrieb Benedikt Meurer:
> Danny Milosavljevic wrote:
> > Hi,
> > 
> > so Daniele Favara is using the python bindings and stumbled over a major
> > oversight on my part...
> > 
> > The xfce-rc files of xfce4 are completely non-gobject. The wrapper
> > generator hates me for that.
> > 
> > Fine, I thought... Then let's just use python's ConfigParser instead.
> > python's ConfigParser is a module for parsing INI-style files that is
> > included in python's main distribution.
> > 
> > However, our xfce rc files are not ini files. For one, they don't have a
> > "[Section Header]"... Now, we could make xfce-rc add that...
> > 
> > But do we want to? Or do we want to stay with the rc format as it is
> > now?
> > In other things (comments, etc), are they equal in handling to ini
> > files?
> > 
> > What about "elevating" xfce rc to gobject? In that late of a phase I
> > feel uneasy doing that kind of change, so no.
> > 
> > Tell me what you think...
> 
> It could be turned into a GObject after 4.4. But on the other hand, you
> could also just add overrides for the functions, the overrides should be
> very easy to do.

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

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

cheers,
  Danny





More information about the Xfce4-dev mailing list