Godot: Implement --no-window option for macOS and Linux

Created on 5 Nov 2020  路  6Comments  路  Source: godotengine/godot

Godot version:
Godot Engine v3.2.3.stable.mono.official

OS/device including version:
macOS Sierra Version 10.12.6

Issue description:
When i try to run a script via OS.execute() with option --no-window the window pops up.
Under Windows 10 it works as expected but under MacOs the window is not hidden

Steps to reproduce:

class_name GdUnitRunnerClient
extends SceneTree

func _initialize():
  pass
...

execution from a EditorPlugin context

var arguments := Array()
arguments.append("--no-window")
arguments.append("-d")
arguments.append("-s")
arguments.append("res://addons/gdUnit/src/core/GdUnitRunnerClient.gd")

var output = []
_current_runner_process_id = OS.execute(OS.get_executable_path(), arguments, false, output, true);

Minimal reproduction project:

feature proposal linuxbsd macos porting

Most helpful comment

Closing, as this is now implemented in 3.2 (it will be in 3.2.4beta2).

All 6 comments

On Linux and macOS --no-window is not implemented, here's PR for it #42276.

$ godot --help | grep no-window
  --no-window                      Disable window creation (Windows only). Useful together with --script.

ok thanks for this feedback

Let's repurpose this as a feature request to implement --no-window for macOS and Linux I guess, which #42276 can close.

Now that the resolving PR has been merged, can this issue be closed?

Closing, as this is now implemented in 3.2 (it will be in 3.2.4beta2).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

willnationsdev picture willnationsdev  路  93Comments

Angluca picture Angluca  路  100Comments

ghost picture ghost  路  161Comments

adolson picture adolson  路  87Comments

akien-mga picture akien-mga  路  366Comments