Where to put .rootrc file that it is read in on startup

******** SORRY FOR THE SPAM *********
******** PROBLEM SOLVED, had syntax error in rootrc file … ************

Hi,

I’d like to apply some personal settings like default bkg color for canvas, pads, histos and alike.

I know I have to use .rootrc for that but I cannot figure out where to put it so that it is also read in. I tried my local home dir, my afs home dir and I believe it does not read it in.

Can I also put some

echo blabla

line into it which I would see on startup so I can better check if it gets readin when I start root?

Cheers
Andi

[quote=“wildauer”]I know I have to use .rootrc for that but I cannot figure out where to put it so that it is also read in. I tried my local home dir, my afs home dir and I believe it does not read it in.
[/quote]
It can be either your $HOME directory or your “working directory”

[quote=“wildauer”]Can I also put some

echo blabla[/quote]
You can add printf("blabla\n"); to your custom version of rootlogon.C macro defined by your custom “.rootrc”

Hi Andi,

Have a look at ftp://root.cern.ch/root/doc/chapter2.pdf - sub-chapter Environment Setup (page 21).

Cheers, Ilka
++ Sorry, I did not see that you have solved your problem.