Steps to Create a Desktop Shortcut for AppImage
- First, download your AppImage and icon (PNG/SVG format)
- Make the AppImage executable:
1
|
chmod u+x your_app.AppImage
|
- Create a directory for your application and move files:
1
2
3
|
sudo mkdir /opt/your_app
sudo mv ~/Downloads/your_app.AppImage /opt/your_app/your_app.AppImage
sudo mv ~/Downloads/your_app.png /opt/your_app/your_app.png
|
Create Desktop Entry File
Create or edit the desktop entry file:
1
|
sudo nvim ~/.local/share/applications/your_app.desktop
|
Minimal Desktop Entry Example
1
2
3
4
5
6
7
|
[Desktop Entry]
Type=Application
Version=1.0
Name=jMemorize
Exec=jmemorize
Icon=jmemorize
Terminal=false
|
Complete Desktop Entry Example
1
2
3
4
5
6
7
8
9
10
|
[Desktop Entry]
Type=Application
Version=1.0
Name=jMemorize
Comment=Flash card based learning tool
Path=/opt/jmemorise
Exec=jmemorize
Icon=jmemorize
Terminal=false
Categories=Education;Languages;Java;
|
Update and Validate Desktop Database
Update the desktop database:
1
|
update-desktop-database ~/.local/share/applications
|
Validate your desktop file:
1
|
desktop-file-validate beeper.desktop
|
Optional: Install the desktop menu entry:
1
|
xdg-desktop-menu install beeper.desktop --novendor
|
Notes
- Only
Type and Name fields are strictly required in the desktop entry
- Make sure paths to your AppImage and icon are correct
- The icon should be placed in a standard icon directory or in the same folder as your AppImage