Well, to be precise, the order is as follows:
- “
$(root-config --etcdir)/system.rootlogon.C” - “
${HOME}/.rootlogon.C” - “
${PWD}/.rootlogon.C” but only if “${PWD}” != “${HOME}” - the file defined by “
Rint.Logon” which exists in “TROOT::GetMacroPath()”, so, by default (see the “$(root-config --etcdir)/system.rootrc” file), it will be either “${PWD}/rootlogon.C” or “${ROOTSYS}/macros/rootlogon.C”