[ANNOUNCE] pyxdg-0.2 released

Heinrich Wendel h_wendel at cojobo.net
Sat Sep 6 00:48:42 EEST 2003


On Fri, Sep 05, 2003 at 04:39:47PM +0100, Mike Hearn wrote:
> Hi Heinrich,
> 
> Does this library let you get a menu path given a .desktop file?

Just updated the cvs version with this function, it was very easy to code,
here an example:

import xdg.Menu
menu = xdg.Menu.parse(menufile])
menu.searchEntry("/usr/share/applications/gfloppy.desktop")


> Also,
> does it let you lookup the icon for each component of that menu path?

At the moment it only gives you the icon name given in the .directory file,
implementatin of the icon-spec is the next item on my todo list ;)

> 
> thanks -mike
mfg, Heinrich :)

> 
> On Fri, 2003-09-05 at 15:34, Heinrich Wendel wrote:
> > Hi,
> > 
> > I just released the second version of pyxdg, you can grab it at:
> > 
> > http://www.cojobo.net/~h_wendel/stuff/pyxdg-0.2.tar.gz
> > http://cvs.cojobo.net/cgi-bin/viewcvs.cgi/pyxdg/
> > 
> > Pyxdg is a python library that contains stuff to handle freedesktop
> > specifications. Currently three implementations are included:
> > 
> > 1.) BaseDirectory.py
> > A module to handle BaseDirectory stuff, taken from the rox library
> > (basedir-spec-0.5)
> > 
> > 2.) DesktopEntry.py
> > A module to validate, parse and work with DesktopEntries
> > (No write support)
> > 
> > 3.) Menu.py
> > A module to parse and work with .menu files.
> > (No Legacy stuff support)
> > 
> > mfg, Heinrich :)
> > 
> > 
> > _______________________________________________
> > Xdg-list mailing list
> > Xdg-list at freedesktop.org
> > https://www.redhat.com/mailman/listinfo/xdg-list
> 
> 
> _______________________________________________
> Xdg-list mailing list
> Xdg-list at freedesktop.org
> https://www.redhat.com/mailman/listinfo/xdg-list
> 
> 





More information about the xdg mailing list