I have an odd (to me) problem with a menu item. When I click Programming, I see the launcher I want but it has the wrong path. That is what I need to correct. When I right click and select properties, I can see everything but cannot edit it. If I go to Preferences->Main Menu Editor and click on Programming, the item is not there (that is the odd part). How do I edit the path for an item? TIA.
Main menu is stored as a collection of
.desktop files in
/usr/share/applications. These files are not editable without root permissions. You can either edit those files with
sudo, or create your own menu in
There's one more place:
/usr/local/share/applications, which is typically used for software you install without the help of the package manager, e.g. with
sudo make install
The format of
.desktop files is pretty self-explanatory:
[Desktop Entry] Encoding=UTF-8 Exec=warsow Icon=/home/USER/my/icons/wsw-icon_80x80.png Type=Application Terminal=false Name=Warsow GenericName=warsow StartupNotify=false Categories=Game
After a modification, you may need to remove cached items from
~/.cache/menus or run
lxpanelctl restart for your changes to take effect.