How to Create Desktop Icon on Fedora Linux

Creating a desktop icon on Fedora Linux involves a few steps:

  1. Create a desktop file: A desktop file is a configuration file that describes the properties of the application, such as its name, icon, and command to run. Create a new file with a .desktop extension in the /usr/share/applications/ directory. For example:
sudo nano /usr/share/applications/myapp.desktop
  1. Add the following lines to the file, replacing the values as appropriate:
[Desktop Entry]
Name=My Application
Comment=Description of my application
Exec=/path/to/my/application
Icon=/path/to/my/icon.png
Terminal=false
Type=Application
Categories=Utility;
  1. Save the file and exit the text editor.
  2. Make the file executable:
sudo chmod +x /usr/share/applications/myapp.desktop
  1. Add the desktop icon to the user’s desktop:
cp /usr/share/applications/myapp.desktop ~/Desktop/

This will copy the .desktop file to the user’s Desktop directory, and the icon will appear on the desktop.

Alternatively, you can create a symbolic link to the .desktop file:

ln -s /usr/share/applications/myapp.desktop ~/Desktop/myapp.desktop

This will create a symbolic link to the .desktop file in the user’s Desktop directory.

Visited 6 times, 1 visit(s) today

1 thought on “How to Create Desktop Icon on Fedora Linux”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top