Skip to content

[API Bug] env.PATH is undefined #170

@Froxcey

Description

@Froxcey

Raycast version:
1.25.1

Description

Environment variable seems to be not working. This causes lots of things that has to do with shell to be broken. For me, my extension is dependent YouTube-dl, and running it using

Two ways to reproduce this error

  1. In Node, run console.log(process.env.PATH). It should output a list of path, but it return undefined.
  2. Run any non built in command with child_process.spawn() throws ENOENT error.

child_process.exec() works properly, but using child_process.spawn() is just a better practice generally, and it also sends stdout when the process is running instead of waiting for process to exit. This need to be fixed so loading progress can be shown if something relies on running shell commands.

Metadata

Metadata

Assignees

Labels

apiIssues related to APIbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions