XDG Menus Revisited
I’ve been messing around with a better way to use xdg-menus with openbox, my first attempt was both clumsy and not very generic (not everyone has their menus set up exactly like me…) I’ve reworked the whole ordeal into a simple script that will pull the pipemenu, swap your menu.xml and write the xdg-menu in the fist instance, there are even instructions on how to automate it to react to adding and removing software, using fsniper.
You can get the script here:
Because I now have an xdg-menu I’ve had to add a few custom .desktop files and make a couple of scripts to make the change easier.
They are all here:
http://github.com/mulberry/obtools/
The bluetooth script is the one that was most hassle as I have no idea what I am doing, but it basically uses zenity and bluez utilities to scan for bluetooth devices and then mount them with obexfs and show the dir in thunar, I guess the thunar bit is optional? There is an openbox pipemenu in there that does pretty much the same but it is really slow due to the scanning. You still need to bond the devices first but that’s your business how you do that
.

There is also a simple zenity monstrosity to exit openbox if you are using it to manage your session.
That is all I got.
2 Comments »
RSS feed for comments on this post. TrackBack URI
When I run xdgopenboxmenu this is my ouput:
2010-05-10 07:57:39 (39.2 MB/s) – `/tmp/xdg-menu?revision=1.3′ saved [1739]
Traceback (most recent call last):
File “/home/andy/bin/xdg-menu”, line 48, in
map(walk_menu, gmenu.lookup_tree(menu).root.get_contents())
AttributeError: ‘NoneType’ object has no attribute ‘get_contents’
Any ideas ?….
Andy
Comment by Andy — May 10, 2010 #
Oh! I am so late with replies, poor blog.
I dunno, I always install alacarte and edit some menus, maybe that creates the files xdg-menu looks for? it certainly will pull in all the deps, I had something similar when I updated and that seemed to work for me, I don’t have a clue really, sorry.
Comment by David Barr — June 14, 2010 #