I can't see the icon of the app I added in GNOME.

Asked 2 years ago, Updated 2 years ago, 39 views

GNOME on Arch Linux does not display the application icon.

Downloaded the Firefox Developer Edition tar.gz file and expanded it to $HOME/Firefox Developer Edition.

Then $HOME/.local/share/applications
I installed the following .desktop file in , but the icon does not appear in the application menu.
Why?

 Desktop Entry
Encoding=UTF-8
Version = 1.0
Type = Application
Exec=/home/username/FirefoxDeveloperEdition/firefox/firefox-bin%u
Icon=/home/username/FirefoxDeveloperEdition/firefox/browser/chrome/icons/default/default128.png
Name = Firefox Developer Edition
Comment=Custom definition for Firefox Developer Edition

Environment:
Arch Linux kernel 5.7.12
GNOME 3.36.4

linux gnome

2022-09-30 19:56

1 Answers

Self-resolved:

Register the desktop file using desktop-file-install and
After that, it seems that you need to update the database with update-desktop-database.

The .desktop file is located in ~/app.desktop and
~/.local/share/applications If you want to register your database with the following:

desktop-file-install --dir=~/.local/share/applications~/app.desktop
update-desktop-database~/.local/share/applications


2022-09-30 19:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.