How to edit the start menu under Ubuntu?

  

On Windows systems, users can easily edit the start menu and perform various operations, but under the Ubuntu system, many users don't know much about it, and the method of editing the start menu is relatively unfamiliar. Therefore, Xiaobian below introduces how to edit the start menu under Ubuntu.

Method a: alacarte enter commands directly Ubuntu terminal. You can add, change, hide, and display menus arbitrarily, but you cannot delete menus even if you have root privileges.

Method 2: Pay attention to several directories and files.

desktop file under /usr/share/applications/

/usr/share/applications/mimeinfo.cache file

~/.local/share/applications Desktop file

Files in the ~/.local/share/applications/default.list directory

~/.local/share/applications/mimeinfo.cache file

/Etc/gnome/defaults.list file

The default.list file saves the file opening method, such as what program to open the txt file. Natural /etc is the global file open mode, and .local is the personal file open mode.

The desktop file is a menu item, which is a menu item that appears under Application and System. Under /usr is a global menu item, and under .local is a personal menu item.

Cache file global file open mode and personal file open mode cache

I want to add a menu item, just open a desktop file under /usr/share/applications/, change it according to the change Just fine.

How do I add a custom menu to the menu item I want to go to? For example, if you want to add a top-level directory to the Programming, you need to add a first-level directory under Application.

On the Linux desktop system, users can also easily find a directory application by clicking a shortcut located on the desktop or menu, as in the Windows platform. Both the Linux KDE and Linux GNOME desktop systems use the Desktop Entry file standard to describe program launch configuration information.

The above is the way to edit the start menu under Ubuntu. It is relatively simple for the user to edit the start menu according to the method described above.

Copyright © Windows knowledge All Rights Reserved