sindresorhus

fix-path

Fix the $PATH on macOS and Linux when run from a GUI app

by sindresorhus

JavaScript

JavaScript86.2%
TypeScript13.8%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
nlawrence22

When using Fix-path with Electron and electron-packager, it breaks the ability for the user to quit the application from the dock after packaging. Right clicking the doc-icon and selecting "Quit" does nothing. This is explained in better detail here: https://github.com/electron/electron/issues/8687 . For a minimal application reproducing the problem, see https://github.com/electron/electron/issues/8687#issuecomment-285933916

nlawrence22 · 8mo ago
davej

Using Electron 0.30.2: !screen shot 2015-07-31 at 18 50 39 It works fine on my Macbook Pro but fails to list all the paths on my Macbook Air (as shown above). They are both running Yosemite. I have also reproduced the same issue on a friends Macbook. Any idea what could be going on here?

davej · 8mo ago
SamVerschueren

I am using this in my vscode-yo plugin and noticed something strange. I upgraded some dotfiles of today and since then, the plugin wasn't showing any generators anymore. After investigating this, ANSI color codes where added in front of the path. After some more investigation, it seems that these lines in my dot-files trigger this behaviour. If I remove these lines, the ANSI code is not added. Fix A simple fix is strip-ansi But maybe, this should be fixed somewhere deeper in the chain. After digging into with does, I came to this line 72 in . This is the line that returns the path with the ANSI color codes.

SamVerschueren · 1y ago
Structured data for AI agents

Repository: sindresorhus/fix-path. Description: Fix the $PATH on macOS and Linux when run from a GUI app Stars: 300, Forks: 25. Primary language: JavaScript. Languages: JavaScript (86.2%), TypeScript (13.8%). License: MIT. Latest release: v5.0.0 (1y ago). Open PRs: 0, open issues: 0. Last activity: 8mo ago. Community health: 71%. Top contributors: sindresorhus, callumacrae, Richienb, YS-FE.