Skip to content

Instantly share code, notes, and snippets.

@alabhyajindal
Last active September 22, 2024 16:12
Show Gist options
  • Save alabhyajindal/d821f72a662889ffc0e34c77ac7deec8 to your computer and use it in GitHub Desktop.
Save alabhyajindal/d821f72a662889ffc0e34c77ac7deec8 to your computer and use it in GitHub Desktop.
Create Desktop Entry from AppImage
#!/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