+2 votes
in Operating Systems by (71.8k points)
I installed the "Spring Tool Suite" on my Ubuntu machine. Now I want to create a desktop icon for it so that I do not have to go to the installation folder to open it. How can a desktop icon be created for any application on the Ubuntu machine?

1 Answer

+1 vote
by (353k points)
selected by
Best answer

You can create desktop icon for your application by following these steps:

1. Open terminal and type the following command:

$ gedit ~/Desktop/Eclipse-Spring.desktop

You can use your desired name instead of Eclipse-Spring if you want.

2. Type the following lines in file Eclipse-Spring.desktop.

[Desktop Entry]
Name=Eclipse Spring
Comment=Integrated Development Environment
Name[en]=Eclipse Spring
Name[en_US]=Eclipse Spring

Replace '/home/userxxx/SpringToolSuite4/' with the path to "Spring Tool Suite" on your machine. Save the file and close it.

3. Now you will get an icon on your desktop. Right click on that icon, click on properties. It will open a small popup window. Click on Permissions on that popup window and then select "Allow executing file as program". This will change the icon.

Ubuntu Desktop Icon

4. Double click on the icon on your desktop and then click on "Trust and Launch" to open your applicaiton.

Ubuntu desktop icon