How to add a menu entry for all users
ubuntu-users at list-post.mks-mail.de
Tue Jun 29 07:18:26 UTC 2010
29.06.2010 06:09, Olivier Nicole:
>> If you already have a *.desktop file to launch your application (for
>> example myapp.desktop) you can add it to the menu for all users by doing
>> something like
>> sudo xdg-desktop-menu install --novendor --mode system myapp.desktop
> I tried that already but with no success.
Since the above command works just fine for me: what exactly did you try?
Especially: where was your myapp.desktop file located when you executed
Was there already a copy of myapp.desktop in some of the places relevant
for the menu system, for example in
Was a myapp.desktop created in /usr/local/share/applications?
> Now I noticed something weird.
> During a Gnome session, if I rename or copy the
> /usr/share/applications/myapp.desktop file, the menu is updated for
> that session.
> If I have several users connected at that time (with switch user), the
> menu is updated accordingly for every connected users.
> But after I disconnect and reconnect the menu is back to the default!
Might be some kind of caching, which is causing this.
sudo xdg-desktop-menu forceupdate
after copying the .desktop file make a difference?
More information about the ubuntu-users