Comments (4)
Should have looked at the source code first ! There's an if statement in there detecting Darwin. I just commented it out in my local copy, and it fixed the path in Ubuntu.
[didn't fix the error I was getting though, so something else broken too].
from fix-path.
Had to revisit this today. Seems Linux does have the same problem as Darwin. Could you add me to the contributors so I can alter the code to run the fix for Linux too ?
Or failing that, could you change the if statement to:
if ((process.platform !== 'darwin') && (process.platform !== 'linux')){
return;
}
Ian
from fix-path.
In what type of application are you using this?
from fix-path.
It's an electron app that runs a python script. The script won't show up in the packaged app under Linux and Darwin unless I run fix-path. It's not a huge problem to adapt it locally if you want to keep it mac-only on github. I could even just do a manual path fix.
from fix-path.
Related Issues (14)
- Fix-path breaks quit from dock in packaged electron app on OSX HOT 4
- Webpack warning: Module not found: Error: Can't resolve 'spawn-sync'
- Module not found: Can't resolve 'node:os' HOT 4
- ES Module import error HOT 2
- Must use import to load ES Module HOT 1
- how to use with require() ? HOT 4
- Get $PATH from the real shell HOT 1
- Different PATH with fixPath compared to $PATH in terminal? HOT 17
- Path not being fixed HOT 33
- ANSI codes appear in process.env.PATH after fix-path HOT 19
- Unexpected token error HOT 7
- No effect in PATH? HOT 2
- Implement $PATH detection using `/usr/libexec/path_helper` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fix-path.