1. Enter the desktop directory
cd ~/Desktop
2. Create .desktop file
touch androidStudio.desktop
3. Edit .desktop files with Vim
[Desktop Entry]
Name=AndroidStudio
Type=Application
Exec=/home/ubuntu/opt/android-studio/bin/studio.sh
Icon=/home/ubuntu/opt/android-studio/bin/studio.png
Terminal=False
- There cannot be any spaces before and after
4. Add permissions
chmod a+x androidStudio.desktop