Home  >  Article  >  System Tutorial  >  How to edit the start menu in Ubuntu? How to edit the start menu in Ubuntu

How to edit the start menu in Ubuntu? How to edit the start menu in Ubuntu

王林
王林forward
2024-01-07 15:26:19909browse

In the Windows system, users can easily edit the start menu and perform various operations. However, in the Ubuntu system, many users do not know much about it and are relatively unfamiliar with the method of editing the start menu. Therefore, the editor will introduce how to edit the start menu in Ubuntu. Let’s go and see it together!

How to edit the start menu in Ubuntu? How to edit the start menu in Ubuntu

Method 1: Enter the command alacarte directly in the Ubuntu terminal. You can add, modify, hide, and display menus at will, but you cannot delete menus, even if you have root permissions.

Method 2: Pay attention to several directories and files.

desktop file under/usr/share/applications/

/usr/share/applications/mimeinfo.cache file

~desktop file under/.local/share/applications

~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 way to open the file, such as what program to use to open the txt document. Naturally, the file opening method under /etc is the global file opening method, and the file opening method under .local is the personal file opening method.

The desktop file is a menu item, which appears under Application and System. Those under /usr are global menu items, and those under .local are personal menu items.

cache file global file opening method and personal file opening method cache

If you want to add a menu item, just open a desktop file under /usr/share/applications/ and modify it accordingly.

How to add a customized menu to the menu item you want to go to? For example, if you want to add a top-level directory under Programming, that is, the first-level directory under Application.

On the Linux desktop system, users can also easily find directory applications by clicking the shortcut on the desktop or menu just like on the Windows platform. Both Linux KDE and Linux GNOME desktop systems use the Desktop Entry file standard to describe program startup configuration information.

The above is the detailed content of How to edit the start menu in Ubuntu? How to edit the start menu in Ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete