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?


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

| improve this answer | |
  • 3
    "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

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.

| improve this answer | |

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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