Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a menu item using xdg-desktop-menu install mycompany-myapp.desktop. Unfortunately, the menu item does not occur immediately on Ubuntu 11.10, but I need to log out and in again. Is there a possibility to force a menu refresh, so it occurs immediately?

share|improve this question

Possibly same reason mine suddenly started working

I realised my .desktop file wasn't visible to group or all. I did a chmod 644 on it and it now refreshs instantly.

share|improve this answer

xdg-desktop-menu has an forceupdate option according to the man page.

share|improve this answer
"This command is only useful if the last call to xdg-desktop-menu included the --noupdate option." – Mike L. Dec 30 '11 at 8:48
up vote 0 down vote accepted

Don't know what caused the changes, but now when I invoke xdg-desktop-menu install mycompany-myapp.desktop or xdg-desktop-menu uninstall mycompany-myapp.desktop the menu is automatically refreshed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.