Launch bash script using icon
Here's a way to set an icon that launches bash script in Debian systems.
In the given example the new icon will launch Android studio.
The location of the extracted archive in this case is /home/samuil/android-studio/bin/
Create a .desktop file:
sudo vim /usr/share/applications/android-studio.desktop
Put the following content in the file:
[Desktop Entry]
Type=Application
Name=Android Studio
Exec=/home/samuil/android-studio/bin/studio.sh
Icon=/home/samuil/android-studio/bin/studio.png
Now the icon is accessible in the applications list and search.