Are you troubled by the messy program names in the way of right-clicking gnome on Ubuntu? Have you ever encountered a problem that the program found in the right-click opening method after the uninstallation?
Method 1: directly enter the alacarte command on the Ubuntu terminal. You can add, modify, hide, and display menus at will, but cannot delete the menus, even if you have the root permission.
Method 2: pay attention to the following directories and files:
/Usr/share/applications/desktop file
/Usr/share/applications/mimeinfo. cache file
~ /. Local/share/applications/desktop file
~ /. Local/share/applications/Default. list file
~ /. Local/share/applications/mimeinfo. cache file
/Etc/gnome/defaults. list file
Where, default. the list file stores the file opening method (for example, what program is used to open the TXT file), And/etc stores the Global File opening method ,. local files are opened by individuals.
A desktop file is a menu item, that is, a menu item that appears under application and system, a global menu item under/usr, and a personal menu item under. Local.
The Global File opening method and the individual file Opening Method of the cache file cache.
You can directly edit the corresponding file to modify the menu items and default tools.