Skip to content

Commit

Permalink
Add support for Linux
Browse files Browse the repository at this point in the history
Fixes #10
  • Loading branch information
sindresorhus committed Aug 25, 2021
1 parent 8968c9b commit 5f0a1a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -2,7 +2,7 @@ import process from 'node:process';
import {shellPathSync} from 'shell-path';

export default function fixPath() {
if (process.platform !== 'darwin') {
if (process.platform === 'win32') {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "fix-path",
"version": "3.0.0",
"description": "Fix the $PATH on macOS when run from a GUI app",
"description": "Fix the $PATH on macOS and Linux when run from a GUI app",
"license": "MIT",
"repository": "sindresorhus/fix-path",
"funding": "https://github.com/sponsors/sindresorhus",
Expand Down
4 changes: 2 additions & 2 deletions readme.md
@@ -1,8 +1,8 @@
# fix-path

> Fix the `$PATH` on macOS when run from a GUI app
> Fix the `$PATH` on macOS and Linux when run from a GUI app
Useful for Electron apps as GUI apps on macOS do not inherit the `$PATH` defined in your dotfiles *(.bashrc/.bash_profile/.zshrc/etc)*.
Useful for Electron apps as GUI apps on macOS and Linux do not inherit the `$PATH` defined in your dotfiles *(.bashrc/.bash_profile/.zshrc/etc)*.

## Install

Expand Down

0 comments on commit 5f0a1a2

Please sign in to comment.