Browse Source

Only parse .desktop files

pull/1/merge
gapan 13 years ago
parent
commit
50a800d984
  1. 7
      src/xdgmenumaker

7
src/xdgmenumaker

@ -171,9 +171,10 @@ def menu():
applist = [] applist = []
for desktopfile in desktopfilelist(): for desktopfile in desktopfilelist():
try: try:
e = get_entry_info(desktopfile) if desktopfile.endswith('.desktop'):
if e is not None: e = get_entry_info(desktopfile)
applist.append(MenuEntry(e[0], e[1], e[2], e[3])) if e is not None:
applist.append(MenuEntry(e[0], e[1], e[2], e[3]))
except exc.ParsingError: except exc.ParsingError:
pass pass

Loading…
Cancel
Save