Skip to content

[Windows] mprocs cant open paths. #174

@JABirchall

Description

@JABirchall

Mprocs fails to run programs in the directory mprocs is run from, and can not change directory to the cwd.
Only programs which are in the system PATH are able to execute, eg winget in this case.

example config:

procs:
  squircy:
    cmd: ["squircy2", "-no-interactive", "-root-path=./config"]
  stalwart:
    cwd: "J:/stalwart/"
    cmd: ["stalwart-cli"]
  winget:
    cmd: ["winget", "update"]

Log:

ERROR [portable_pty::win::psuedocon] CreateProcessW `"squircy2 -no-interactive -root-path=./config\0"` in cwd `Some("C:\\Users\\owner\\Documents\\projects\\squircy2\0")` failed: The system cannot find the file specified. (os error 2)
ERROR [portable_pty::win::psuedocon] CreateProcessW `"stalwart-cli\0"` in cwd `Some("J:/stalwart/\0")` failed: The system cannot find the file specified. (os error 2)

Seems paths are being appended with \0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions