xdg-desktop-menu

Install desktop menu entries

TLDR

Install application to menu
$ xdg-desktop-menu install [path/to/file.desktop]
Install without vendor check
$ xdg-desktop-menu install --novendor [path/to/file.desktop]
Uninstall from menu
$ xdg-desktop-menu uninstall [path/to/file.desktop]
Force update menu
$ xdg-desktop-menu forceupdate --mode [user|system]

SYNOPSIS

xdg-desktop-menu COMMAND [OPTIONS] [FILE]

DESCRIPTION

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.

PARAMETERS

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

INSTALL

sudo dnf install xdg-utils
sudo pacman -S xdg-utils
sudo apk add xdg-utils
sudo zypper install xdg-utils
nix profile install nixpkgs#xdg-utils

CAVEATS

Requires valid .desktop files. Menu system must be XDG compliant. Changes may require logout or menu refresh to appear.

SEE ALSO

xdg-open(1), xdg-mime(1), desktop-file-validate(1)