godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.11k stars 69 forks source link

Open '.godot' files in Godot by default (Windows / Steam) #9813

Open SheepCommander opened 3 months ago

SheepCommander commented 3 months ago

Describe the project you are working on

I frequently download various Godot projects and it would be great to double click project.godot and have it open Godot.

Describe the problem or limitation you are having in your project

Very minor inconvenience in repeatedly typing and opening Godot from the startmenu then dragging the project.godot into Godot then running the project

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Streamlines opening new projects for people who frequently download godot projects

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

If possible, add Godot to this menu

image

If this enhancement will not be used often, can it be worked around with a few lines of script?

Windows users can manually tell Windows how to open .godot files by using Choose another app -> Choose an app on your PC and finding the Godot binary.

However I'm not sure where Steam stores the godot binary (I could download the godot binary myself but that defeats the purpose)

Is there a reason why this should be core and not an add-on in the asset library?

not something an EditorPlugin can change

AThousandShips commented 3 months ago

See:

Calinou commented 3 months ago

Steam does not run Windows installers (with the exception of DirectX/VC++ redistributables), so it likely uses a different approach to define file assocations. One such way is to have the app itself register a file association on startup if it doesn't exist already.