How create a Application shortcut in ubuntu
Example using spodify command
nano ~/Desktop/spotify-pulseaudio.desktop
Write this commands
[Desktop Entry]
Version=1.0
Type=Application
Name=Spotify PulseAudio
Comment=Ejecutar Spotify con PulseAudio
Exec=spotify --audio-api=pulseaudio
Icon=/snap/spotify/96/usr/share/spotify/icons/spotify-linux-128.png
Terminal=false
Categories=Audio;Music;
StartupNotify=true
Where "Exec" is the command line and "Icon" is the path of Icon.
Grant permission for execute.
chmod +x ~/Desktop/spotify-pulseaudio.desktop
uses the GNOME/GTK utility gio to mark a .desktop launcher file as trusted/executable in Ubuntu and other GNOME-based Linux desktops.
gio set ~/Desktop/spotify-pulseaudio.desktop metadata::trusted true
Right-clicking on the icon and select → Allow to start.
Now you could Click on the icon to run the application.

Comments
Post a Comment