-
Notifications
You must be signed in to change notification settings - Fork 43
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
Please write environment variable configuration to ~/.pam_environent and ~/.profile, or /etc/profile.d instead of ~/.bashrc #13
Comments
ping @XECDesign @liamfraser Would changing https://github.com/raspberrypi/pico-setup/blob/master/pico_setup.sh#L71 to write to Although bear in mind I'm not sure how much support we should give to non-standard setups... |
Can't find anything about |
Your patch suffers from the same problem as the original script, i.e. if ~/.profile does not end with a new line, you create garbage. See issue #12 |
I agree that I don't think that installing to a global location ( |
@michaelstoops See the proposed fix in #14 |
I see no point in supporting such weird exceptions. This script runs on most target platforms, i.e. works with I also never heard of |
Depends on your platform, macOS uses
That's the whole point of #20. The original script worked just fine for Raspberry Pi OS on a Pi 4. It worked less well for other users on other platforms. So there is an ongoing PR process to improve the script. |
This script write environment variable configuration to ~/.bashrc, which means that this configuration will only take effect in an interactive bash session. However, users may want to launch the IDE under a graphical environment, or they may wish to use a different shell, e.g. zsh.
So the configuration should be writen to ~/.pam_environment and ~/.profile instead. Alternatively, if the configuration needs to take effect for all users, the script should create a new file in /etc/profile.d and write the configuration there.
The text was updated successfully, but these errors were encountered: