Package: gnome-menus
Version: 3.8.0-2

Dear maintainers,

In current jessie I'm finding that in the GNOME Flashback Applications
menu, as well as other programs such as Alacarte that display the same
menu structure, many desktop entries appear in the "Other" category in
addition to the expected one.

Running the attached script in a chroot with gnome-menus, python-gi,
and libgnome-menu-3-dev installed gives these results on wheezy:

Applications
- Internet
- - google-chrome.desktop
- System Tools
- - reportbug.desktop

and these results on jessie:

Applications
- Internet
- - google-chrome.desktop
- System Tools
- - reportbug.desktop
- Other
- - google-chrome.desktop
- - reportbug.desktop

(In case it matters, google-chrome.desktop comes from
~/.local/share/applications.)

Thanks,
Ryan
from gi.repository import GMenu

def dump_name(name, level):
	print '%s%s' % ('- ' * level, name)

def dump(item, level=0):
	dump_name(item.get_name(), level)
	it = item.iter()
	it_type = it.next()
	while it_type != GMenu.TreeItemType.INVALID:
		if it_type == GMenu.TreeItemType.DIRECTORY:
			item = it.get_directory()
			dump(item, level+1)
		elif it_type == GMenu.TreeItemType.ENTRY:
			item = it.get_entry()
			dump_name(item.get_desktop_file_id(), level+1)
		it_type = it.next()

tree = GMenu.Tree()
tree.load_sync()
root = tree.get_root_directory()
dump(root)

Reply via email to