-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to find livestreamer #24
Comments
Sounds strange... The node-webkit version has changed since the v0.5.0 release from |
I'm trying to get the value of |
Alright, I installed the
As suspected, running the latest version from the repo does have the correct path. I'm trying to check the values from the installed version, but since I can't seem to get any breakpoints in there, it's proving to be challenging. EDIT: Got the info by modifying the minified source in the installed app bundle.
I guess this might have been a bug with the old version of node-webkit, then. |
I've just tested it with all v0.10.x node-webkit versions and it's still not working properly. 😞 Like you've mentioned, it's working after launching the application via the bash and using the open command, but it doesn't if you open it via the finder or dock. The value of So is this really a node-webkit bug or is this intended behavior of OSX? (I don't use it, so I don't know...) |
It seems that apps launched through spotlight or the dock don't read environment variables from the normal places ( However, from what I've been able to gather from some quick googling, it seems you can set environment variables from within app bundles by declaring them in an The issue is that there's no way to read the path from any of the sane places, so I'm guessing the least intrusive way would be to create a list of common places where it could be installed and add that to a separate environment variable ( Now, I think you'd still want to read from the normal path as well, so maybe this line will have to change, since it only reads from the first available environment variable:
Maybe instead you could read from all of them (plus your own), filter out the duplicates and go from there? I'd be willing to help you out, if I knew how the development workflow was set up, but I'm going to be very busy all week, so I'll likely not have any opportunity until next weekend. I'll be checking my notifications though, so I'll try to be around to test things or maybe try implementing something as soon as I have the time. |
Thanks for offering your help, much appreciated! I think the right way of fixing this issue would be changing the The problem I ran into so far is the way |
I'm still waiting for a merge at nwutils/nw-builder#96... |
livestreamer-twitch-gui fails to find my livestreamer installation in OSX when using installed version. As you can see, livestreamer is in my path:
If I launch livestreamer-twitch-gui by cloning the repo, running the build command and then manually running the application from the
src
directory, it finds the livestreamer binary:I figured it was because installed GUI apps launched from spotlight or the dock don't have
/usr/local/bin
in their PATH by default, but launching the installed application from the terminal doesn't work either:Manually setting the path in the livestreamer-twitch-gui settings does resolve the issue, but it's nevertheless strange that the binary isn't found when running the installed version (it is the latest, btw). The only thing I can think of is that maybe
process.env.path
is different for the installed version, but I don't see why it would be.The text was updated successfully, but these errors were encountered: