GitShow/sindresorhus/fix-path
sindresorhus

fix-path

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

by sindresorhus
Star on GitHubForknpm

JavaScript

301 stars25 forks4 contributorsQuiet · 6mo agoSince 2015v5.0.0MIT

Meet the team

See all 4 on GitHub →
sindresorhus
sindresorhus25 contributions
callumacrae
callumacrae1 contribution
Richienb
Richienb1 contribution
YS-FE
YS-FE1 contribution

Languages

View on GitHub →
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

Recent fixes

View closed PRs →
nlawrence22
Fix-path breaks quit from dock in packaged electron app on OSXClosedIssue

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 · 6mo ago
davej
Path not being fixedClosedIssue

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 · 6mo ago
SamVerschueren
ANSI codes appear in process.env.PATH after fix-pathClosedIssue

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 · 11mo 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: 301, Forks: 25. Primary language: JavaScript. Languages: JavaScript (86.2%), TypeScript (13.8%). License: MIT. Latest release: v5.0.0 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 6mo ago. Community health: 71%. Top contributors: sindresorhus, callumacrae, Richienb, YS-FE.

·@ofershap

Replace github.com with gitshow.dev