-
Couldn't load subscription status.
- Fork 1.4k
[core] Allow custom path for .rootrc instead of $HOME #20202
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
Just a couple of docu improvement suggestions.
core/base/src/TEnv.cxx
Outdated
| /// case the home directory resides on an auto-mounted remote file system | ||
| /// and one wants to avoid the file system from being mounted. | ||
| /// In case the environment variable ROOTENV_USER_PATH is specified, | ||
| /// `$ROOTENV_USER_PATH/<name>` is considered instead of `$HOME/<name>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// `$ROOTENV_USER_PATH/<name>` is considered instead of `$HOME/<name>`. | |
| /// and ROOTENV_NO_HOME is not set, then | |
| /// `$ROOTENV_USER_PATH/<name>` is considered instead of `$HOME/<name>`. | |
| /// If you prefer avoiding environment variables, in `.bash_aliases` you could define instead | |
| /// `alias root="root -e 'gEnv->ReadFile(\"/your/path/\", kEnvLocal);'"` | |
| /// or create a `rootlogon.C` script where you run this statement or create a custom TEnv object. |
core/base/src/TEnv.cxx
Outdated
| /// i.e.\ `$ROOTSYS/etc/system<name>` (or `ROOTETCDIR/system<name>`), | ||
| /// `$HOME/<name>` and `$PWD/<name>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// i.e.\ `$ROOTSYS/etc/system<name>` or `ROOTETCDIR/system<name>` (kEnvGlobal), | |
| /// `$HOME/<name>` or (kEnvUser), and `$PWD/<name>` (kEnvLocal). |
README/ReleaseNotes/v638/index.md
Outdated
| export CLING_CPPSYSINCL=$(LC_ALL=C c++ -xc++ -E -v /dev/null 2>&1 | sed -n '/^.include/,${/^ \/.*++/{p}}' | tr '\n' ':' | tr ' ' ':') | ||
| ``` | ||
| This caching reduces sub-process creation during initialization and can be useful when multiple ROOT instances or binaries linked to ROOT are executed (less system-calls, cleaner debugging). | ||
| * It is now possible to read a configuration file (a "rootrc file") at startup instead of the one in the home directory, by specifying its full path with the `ROOTENV_USER_PATH` environment variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * It is now possible to read a configuration file (a "rootrc file") at startup instead of the one in the home directory, by specifying its full path with the `ROOTENV_USER_PATH` environment variable. | |
| * It is now possible to read a user configuration file (a "rootrc file") at startup in a custom path instead of the one in the home directory, by specifying its full path with the `ROOTENV_USER_PATH` environment variable. |
Test Results 22 files 22 suites 3d 16h 1m 58s ⏱️ Results for commit 6fe9cd6. ♻️ This comment has been updated with latest results. |
via environment variable ROOTENV_USER_PATH. Fixes root-project#20132
5311b1a to
6fe9cd6
Compare
|
Thanks for the comments. All integrated, almost as formulated. Last round of tests. |
via environment variable ROOTENV_USER_PATH.
Fixes #20132