godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.93k stars 21.15k forks source link

OS Class Bugs on Linux #42583

Open nonunknown opened 4 years ago

nonunknown commented 4 years ago

Godot version: 3.2.3 stable

OS/device including version: KaOS (Arch Linux)

Issue description:

Using shell open produces error telling the user the path to the project doesnt exits:

OS.shell_open("<godot_executable_path> -d --path <project_folder_path>")

Using Shell execute ignore passed arguments

OS.execute(OS.get_executable_path(),PoolStringArray(["-d","-w","--resolution 720x480"]),false)

placing OS.get_cmd_args() after the OS.execute, produces [--args]

Steps to reproduce:

Mentioned above.

Minimal reproduction project:

unknown.multipleinstance.zip

akien-mga commented 4 years ago

Steps to reproduce:

Mentioned above.

Minimal reproduction project: N/A

I can't reproduce the issue so I'd say a minimal project is not "not applicable".

In particular, OS.execute(OS.get_executable_path(),PoolStringArray(["-d","-w","--resolution 720x480"]),false) works fine and will chain load the current project if it's in the main scene (so have a terminal handy to killall godot :)).

nonunknown commented 4 years ago

ps: try to reproduce as a plugin (tool mode)

akien-mga commented 4 years ago

Or provide a project that demonstrates what the issue is exactly, as asked by the template...

nonunknown commented 4 years ago

done