Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

The menu daemon

ju1ius edited this page Aug 23, 2011 · 20 revisions

Available commands

This is the documentation generated by the fxm-daemon --help command:

Usage: fxm-daemon.py [options] command

Options:
  -h, --help                show this help message and exit
  -v, --verbose             be verbose and log inotify events to syslog
  -b, --with-bookmarks      monitor GTK bookmarks
  -r, --with-recently-used  monitor recently used files
  -a, --all                 equivalent to -br
  -p, --progress            display a progress bar if zenity is installed

Commands:
  help                  prints the help message and exits
  start                 starts the menu daemon
  stop                  stops the menu daemon
  update                regenerates the applications menu
  update-bookmarks      regenerates the bookmarks menu
  update-recently-used  regenerates the recently used files menu
  clear-recently-used   clears the recently used files menu
  clear-cache           regenerates the icon cache,
                        then updates applications, bookmarks,
                        and recently used files menus
  generate-rootmenu     generates a rootmenu
  enable-triggers       add dpkg-triggers
  disable-triggers      remove dpkg-triggers

About dpkg-triggers:
  dpkg-triggers are a Debian/Apt specific way to trigger actions
  when a new package is installed/removed.
  They allow updating the menu without the overhead
  of running a daemon.

  However, they only work with packages installed by apt or dpkg.
  This is why they are not enabled by default.

  If you wish to activate this feature, first stop the daemon:
  $ fxm-daemon.py stop
  Then execute:
  $ fxm-daemon.py enable-triggers

  From now on, if you install a program in a non-standard way,
  like compiling from source, or a wine application,
  you'll need to explicitly update the menu by executing:
  $ fxm-daemon.py update

  You can deactivate this feature later by executing:
  $ fxm-daemon.py disable-triggers

Monitored locations:

The FluXDGMenu system monitors these locations:

  • .directory files (defines submenus)
    /usr/share/desktop-directories
    /usr/local/share/desktop-directories
    ~/.local/share/desktop-directories
  • .desktop files (defines applications)
    /usr/share/applications
    /usr/local/share/applications
    ~/.local/share/applications
  • .menu files (defines menus)
    /etc/xdg/menusd
    ~/.config/menus
  • If the daemon was started with the --with-bookmarks option, it will also monitor ~/.gtk-bookmarks
  • If the daemon was started with the --with-recently-used option, it will also monitor ~/.recently-used.xbel
Clone this wiki locally