How do I create a shortcut for a script, and run it as a .desktop file?

I have installed Teamspeak onto my Ubuntu 15.10 system. Teamspeak requires a script to be ran in-order to start. How can I create a symbolic link that is a .desktop so I can open the .desktop file, and have it run the script? I have looked at a few methods, but they all seem like hotfixes. Is there a proper way to do this?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

You can create a desktop file in ~/.local/share/applications, add something like the following contents:

[Desktop Entry]

This is included in the instructions here. I recomend you read them, but you may want to move the files to a ‘hidden’ location like ~/.teamspeak-install instead /opt

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply