Add Godot Launcher To Linux Application Menu
Published on: Oct. 28, 2019 | In: Godot | By Dean
One of the things that bugged me when I first started using the Godot engine on Linux is that because Godot is a self contained application it doesn’t get added to your application menu automatically. It’s pretty easy to add the launcher yourself. This should work for every distribution and every desktop environment.
First make sure you have downloaded the Godot engine here
Take a note of where you put the Godot binary. We're going to need that in just a second. I tend to put mine in:
I like to have all the software that I download together in a "Software" folder and I like to have all the Godot related stuff together in a "Godot" folder inside the "Software" folder. It's just nice for organisation.
Before we create the the launcher we’re going to need an icon for it. You can download the icon here. I'll put mine in my "Godot" folder but you can put yours where ever you like.
So now I have the Godot engine binary located at:
And I have the icon I want to use located at:
Everything we need is ready so we'll create the launcher now. Open your terminal and type the following command:
If you don't have gedit you can use pluma, leafpad, mousepad, vim, nano or whatever text editor you usually use on Linux.
Enter the following text into that file:
Comment=Godot Game Engine
Make sure that you replace the Exec and Icon sections with the location of the Godot binary and the Icon on your machine. Make sure that you also user the full /home/<username>/Documents format like I did rather than the ~/Documents shortcut as that does not seem to work.
Save and close the file. That's it! You should now have a Godot launcher in your applications menu. If you are using gnome like me, you can go to the applications menu, right click the icon and click "Add to favourites" to add it to your dock.
Thanks for reading.