Package zeroinstall :: Package gtkui :: Module xdgutils
[frames] | no frames]

Module xdgutils

source code

Adding icons and menu items using the freedesktop.org system. (xdg = X Desktop Group)

Functions
 
add_to_menu(iface, icon_path, category, zlaunch=None)
Write a .desktop file for this application.
source code
 
discover_existing_apps()
Search through the configured XDG datadirs looking for .desktop files created by add_to_menu.
source code
Function Details

add_to_menu(iface, icon_path, category, zlaunch=None)

source code 

Write a .desktop file for this application.

Parameters:
  • iface - the program being added
  • icon_path - the path of the icon, or None
  • category - the freedesktop.org menu category

discover_existing_apps()

source code 

Search through the configured XDG datadirs looking for .desktop files created by add_to_menu.

Returns:
a map from application URIs to .desktop filenames