0 votes

I would like to have a button open an application on my computer. Is there a way to do this through the Godot script, or do i need to do it through a custom object in C++?

The use is, for example(pseudocode):


I am trying to build a system splash screen for my HTPC that will allow a user, from the couch, to launch various apps rather than having to go through the OS UI. Choose, for example, Steam or Plex or Browser or Netflix.

asked Nov 10, 2016 in Engine by tmattoneill (44 points)

1 Answer

+2 votes

Try this:

func on_button_click(app_path):

Cf. http://docs.godotengine.org/en/latest/classes/class_os.html

answered Nov 10, 2016 by Akien (1,865 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.