Linux command
xdg-desktop-menu 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Install
xdg-desktop-menu install [path/to/file.desktop]
Example
xdg-desktop-menu install --novendor [path/to/file.desktop]
Uninstall
xdg-desktop-menu uninstall [path/to/file.desktop]
Force update
xdg-desktop-menu forceupdate --mode [user|system]
说明
xdg-desktop-menu installs and uninstalls desktop menu items conforming to the FreeDesktop.org Desktop Entry Specification. It handles the registration of applications with the desktop menu system. The tool is part of the xdg-utils package that provides standardized desktop integration utilities.
参数
- install _FILE_
- Install desktop file to menu system
- uninstall _FILE_
- Remove desktop file from menu system
- forceupdate
- Force menu system to update
- --novendor
- Disable vendor prefix check
- --mode _MODE_
- Specify user or system mode
FAQ
What is the xdg-desktop-menu command used for?
xdg-desktop-menu installs and uninstalls desktop menu items conforming to the FreeDesktop.org Desktop Entry Specification. It handles the registration of applications with the desktop menu system. The tool is part of the xdg-utils package that provides standardized desktop integration utilities.
How do I run a basic xdg-desktop-menu example?
Run `xdg-desktop-menu install [path/to/file.desktop]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does install _FILE_ do in xdg-desktop-menu?
Install desktop file to menu system