Method 1: Enter the alacarte command directly on the terminal. You can add, modify, hide, and display menus at will, but cannot delete menus, even if you have root permissions.
Method 2: Pay attention to several directories and files.
/Usr/share/applications/desktop file
/Usr/share/applications/mimeinfo. cache file
~ /. Local/share/applications desktop file
~ /. Local/share/applications/Default. List Files under the Directory
~ /. Local/share/applications/mimeinfo. cache file
/Etc/gnome/defaults. list file
The default. list file stores the file opening method, for example, what is used in the TXT file?ProgramOpen. In natural/etc, the Global File opening method is used, and in. Local, the individual file opening method is used.
A desktop file is a menu item that appears under application and system. /Usr is a global menu item, and. Local is a personal menu item.
Cache file Global File opening mode and individual file opening mode Cache
To add a menu item, open a desktop file under/usr/share/applications/. Just change it.
How can I add a custom menu to the menu item I want to go? For example, if you want to add a top-level directory under programming, that is, the first-level directory under application