Linux Desktop Shortcut Creator

by likeich

8

Screenshot from 2021-08-30 21-38-08

Godot Linux Shortcut Creator

A simple script for creating desktop files and registering godot games as applications in Linux.

Shortcut icon by Icons8

This is recommended for non-Steam games that users will download onto their Linux-based computers. It is not recommended for Steam because Steam automatically creates shortcuts.

Usage:

  1. Under Project Settings > Application > Config in the Godot Editor, fill in the name and description fields. These will be used automatically in the script.
  2. Replace the default icon.png with your own, this will become the shortcut icon.
  3. Copy the script shortcut_creator.gd into your project, or just copy its code.
  4. Call the creator_shortcut function.
  5. Now your game should show up in the applications menu of Linux DE's

NOTES: If you run this script in the editor, a shortcut will be made and will be the exact same as an exported one. The only difference is that executing it will open the Godot Editor. For actual testing make sure to export your game before creating a shortcut. To prevent creating a shortcut in the editor, try this:

if OS.has_feature("standalone"):
	create_shortcut()

Version

1.0

Engine

3.3

Category

Scripts

Download

Version1.0
Download

Support

If you need help or have questions about this plugin, please contact the author.

Contact Author