Forgot your password?
typodupeerror

Comment Menu integration with Gnome (Score 1) 192

I found a script a long time ago that would generate a WM Menu based off the gnome menu. It's really nice and I have it as the Applications menu in my WM setup.

#!/usr/bin/python -tt
# This has been adapted from Luke Macken's OpenBox menu generation
# script.

import gmenu

def walk_menu(entry):
if entry.get_type() == gmenu.TYPE_DIRECTORY:
print '"%s" MENU' % entry.get_name()
map(walk_menu, entry.get_contents())
print '"%s" END' % entry.get_name()

elif entry.get_type() == gmenu.TYPE_ENTRY and not entry.is_excluded:
print '"%s" EXEC %s' % (entry.get_name(), entry.get_exec())

print '"Fedora" MENU'
map(walk_menu, gmenu.lookup_tree('applications.menu').root.get_contents())
print '"Fedora" END'

Slashdot Top Deals

Doubt is a pain too lonely to know that faith is his twin brother. - Kahlil Gibran

Working...