Skip to content

[feat] Add option to disable CREATE_NO_WINDOW flag #2135

Open
@trippjoe

Description

@trippjoe

Describe the problem

export async function openREPL() {
  const appDirPath = await appDir();
  const command = Command.sidecar("bin/goalc", [
    "--startup-cmd",
    "(mi)",
    "--proj-path",
    `${appDirPath}data`,
  ]);
  command.spawn();
}

The sidecar app that I'm spawning here, bin/goalc, is a console app. When I call this function I can tell that the application is running properly from Task Manager, however the console window does not open on the screen.

Describe the solution you'd like

I'm not sure what the solution to this is.

Alternatives considered

Command::new("start")
    .args(&[*my external bin*, "--option", "args"])
    .spawn()
    .unwrap();

I considered writing functions on the rust side to launch my sidecar app, something along the lines of the code block above. However, I wasn't sure if I would be able to access the external binaries from rust easily. Also, I wanted to avoid multiple implementations for different OS.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📬Proposal

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions