-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Figure out how to propagate ENV VARs in packaged apps #55
Comments
It appears that applications launched from a .desktop shortcut on Linux do not see the ENV vars from the user's .bashrc. The user should still be able to select which notebook server to use and save the preference. #48 |
I did some investigation on this, and the problem boils down to the user's PATH variable. Any extension to the path that is added by the .bashrc is not included when a program is executed from the desktop environment. Thus, if Jupyter is installed by Anaconda, the main process just can't find the executable and the app can't start. I found a solution that works but could use some refinement. Instead of spawning the Jupyter notebook server directly from the main process, we can spawn a shell in interactive mode, which forces .bashrc to be executed. We then pipe a command to the shell that starts the notebook server. |
We use |
This has been solved, hasn't it? |
The ENV VARs in a user's environment determine which python and notebook server will be used. We will need to figure out a way of propagating the those to the electron app when installed so it can start the notebook server.
The text was updated successfully, but these errors were encountered: