Timeline for Adding path to .profile safely using a script
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 22, 2019 at 14:40 | comment | added | Yuki.kuroshita | I realize that sourcing from the script would probably be impossible so after implementing the solution above, I am going to show a message to run source ~/.profile after the installation and also include the instruction inside the README file just in case. That seems to be the only thing that I can do. | |
| Jan 22, 2019 at 12:20 | comment | added | Freddy | You are right, good point! | |
| Jan 22, 2019 at 11:58 | comment | added | Ralf | But that would only source the file in the installation script. After that installation script exits, the sourced settings are gone. | |
| Jan 22, 2019 at 11:48 | comment | added | Freddy | Yes, but not if the file is sourced again. Yuki wanted to source ~/.profile from the script itself. | |
| Jan 22, 2019 at 11:44 | comment | added | Ralf | Note, that .profile is only sourced on logon. So the user has to log off and log on again to get this settings active. | |
| Jan 22, 2019 at 10:48 | vote | accept | Yuki.kuroshita | ||
| Jan 22, 2019 at 10:05 | review | First posts | |||
| Jan 22, 2019 at 10:06 | |||||
| Jan 22, 2019 at 10:05 | history | answered | Freddy | CC BY-SA 4.0 |