chickensoft-games / GodotEnv

Manage Godot versions and addons from the command line on Windows, macOS, and Linux.
https://www.nuget.org/packages/Chickensoft.GodotEnv/
MIT License
335 stars 17 forks source link

Feature Request: Cross-platform way to start active Godot installation #82

Open donovani opened 6 days ago

donovani commented 6 days ago

The management of the Godot installation is great, but one thing that doesn't seem to be covered much in the docs is how you run the currently active Godot installation. On my Macbook I use open $GODOT; for Windows CMD I think it's start %GODOT%, and for Linux... I'm not even sure. 😅

I would love to see a cross-platform command to open the installed Godot Engine

Since this project is built in C#, you can probably leverage the Process API (or something similar) to run an executable in a platform-agnostic way. This could then be exposed as a command, so that a user can open Godot the same way independent of their system.

Example:

# Install and switch to Godot 4.3
godotenv godot install 4.3.0
godotenv godot use 4.3.0

# Opens Godot 4.3
godotenv godot start

The underlying symlink/environment variable should still stay, so that users have full control over how to run the executable, but this would be a nice QoL to help folks working across OSes.

donovani commented 4 days ago

This can be closed, I didn't realize that GodotEnv sets the godot command to point at your active Godot version. 🤦 Might still be nice to have that documented in the README for dense folks like me. For those wondering, you can just open the editor with godot -e or godot -p. You can verify this by calling which godot or an equivalent command.

jolexxa commented 3 days ago

@donovani I'm reopening because I think it would be nice to document this in the readme, too. You can reference godot directly or use $GODOT if you've set that up to execute Godot.