Last active
September 9, 2025 10:00
-
-
Save 54keesh/e8bd7a3af9812f5ec42c0235b72c754b to your computer and use it in GitHub Desktop.
Script to create desktop icons from standalone app images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !# /bin/bash | |
| cp app.AppImage ~/Applications/app.appimage | |
| // following is the .desktop file to be placed in ~/.local/share/applications/ | |
| /** app.desktop **/ | |
| [Desktop Entry] | |
| Name=file name | |
| Exec=/home/username/Applications/app.appimage | |
| Terminal=false | |
| Type=Application | |
| Icon=icon | |
| // here hicolor is icon theme | |
| // Afterwards place an icon of app in ~/local/share/icons/hicolor/64x64/apps/icon.png | |
| // or simply add icon path directly in Icon | |
| After that run following command | |
| #! /bin/bash | |
| update-desktop-database ~/.local/share/applications |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
desktop-file-install file.desktopcommand adds a given.desktopfile to/usr/share/applicationsand will be consequently shown in start menu as well.Above command validates the
.desktopfile and afterwards automatically runsupdate-desktop-database