Last active
September 22, 2024 16:12
-
-
Save alabhyajindal/d821f72a662889ffc0e34c77ac7deec8 to your computer and use it in GitHub Desktop.
Create Desktop Entry from AppImage
This file contains 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
#!/usr/bin/env bash | |
# Store icon and AppImage in variable | |
icon_path=$HOME/Downloads/<YOUR_LOGO_FILE_NAME>.png | |
exec_path=$HOME/Downloads/<YOUR_APPIMAGE_FILE_NAME> | |
# Copy both files | |
cp $icon_path ~/.local/share/applications/ | |
cp $exec_path ~/.local/share/applications/ | |
# Create a Desktop Entry file | |
echo "[Desktop Entry] | |
Name=<YOUR_APP_NAME> | |
Categories=<AudioVideo|Audio|Video|Development|Education|Game|Graphics|Network|Office|Science|Settings|System|Utility | |
> | |
Icon=$icon_path | |
Exec=$exec_path" >> ~/.local/share/applications/<YOUR_APP_NAME>.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment