# rootlogon.C documentation

**URL:** <https://root-forum.cern.ch/t/rootlogon-c-documentation/49150>\
**Category:** General Chat\
**Tags:** documentation\
**Created:** [March 12, 2022, 5:01pm UTC](https://root-forum.cern.ch/t/rootlogon-c-documentation/49150 "2022-03-12T17:01:08Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [March 15, 2022, 8:08am UTC](https://root-forum.cern.ch/t/rootlogon-c-documentation/49150/11 "2022-03-15T08:08:00Z")

</div>

Well, to be precise, the order is as follows:

1. “`$(root-config --etcdir)/system.rootlogon.C`”
2. “`${HOME}/.rootlogon.C`”
3. “`${PWD}/.rootlogon.C`” but only if “`${PWD}`” != “`${HOME}`”
4. 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`”

---

_[View the full topic](https://root-forum.cern.ch/t/rootlogon-c-documentation/49150)._
