# Web browser off not working

**URL:** <https://root-forum.cern.ch/t/web-browser-off-not-working/56859>\
**Category:** Newbie\
**Created:** [October 25, 2023, 8:59pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859 "2023-10-25T20:59:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfry299](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@jfry299](https://root-forum.cern.ch/u/jfry299)\
**Post date:** [October 25, 2023, 8:59pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859/1 "2023-10-25T20:59:42Z")

</div>

_ROOT Version:_ 6.28.6  
_Platform:_ Linux 6.2.0  
_Compiler:_ Not Provided

* * *

Hi,

I am attempting to turn off the default web based browser in root. To do this, I followed the instructions on the root website of adding the command:

```auto
Browser.Name: TRootBrowser

```

to my .rootrc file. Even with this line, the web based browser opens unless I include the --web=off command when starting root. I’m not quite sure what I’m doing wrong, and any advice on how to turn off this web based browser would be much appreciated!

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [October 26, 2023, 6:59am UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859/2 "2023-10-26T06:59:57Z")

</div>

Hi,

Where you put your `.rootrc` file?  
It should be either in current dir on in your home directory.  
You also can try to add:

```auto
Canvas.Name: TRootCanvas

```

But this only required if you are using ROOT master branch.

Regards,  
Sergey

---

<div class="post-metadata">

**Author:** ![jfry299](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@jfry299](https://root-forum.cern.ch/u/jfry299)\
**Post date:** [October 26, 2023, 1:18pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859/3 "2023-10-26T13:18:43Z")

</div>

Hi Sergey,

Thank you for the response! The .rootrc file is in my home directory. I tried adding the line

```auto
Canvas.Name: TRootCanvas 

```

to the .rootrc file, but am still being redirected to the web based browser. I appreciate any other advice you or anyone else might have. Thank you!

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [October 26, 2023, 1:30pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859/4 "2023-10-26T13:30:57Z")

</div>

Can you start ROOT and check that is return value of `gEnv->GetValue("Browser.Name", "")`.

---

<div class="post-metadata">

**Author:** ![jfry299](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@jfry299](https://root-forum.cern.ch/u/jfry299)\
**Post date:** [October 26, 2023, 2:13pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859/5 "2023-10-26T14:13:20Z")

</div>

When I try checking the value/name, it returns `ROOT::Experimental::RWebBrowserImp` instead of `TRootBrowser`. I’m not sure why this is the case.

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [October 26, 2023, 3:19pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859/6 "2023-10-26T15:19:39Z")

</div>

That is name of your file? It must be `.rootrc`. And you have to put this file in current dir or in your home directory - check `echo $HOME` in your shell.

If you build ROOT yourself - you can modify `$ROOTSYS/etc/system.rootrc` file.  
It is central place where ROOT settings are stored.

---

<div class="post-metadata">

**Author:** ![jfry299](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@jfry299](https://root-forum.cern.ch/u/jfry299)\
**Post date:** [October 26, 2023, 5:27pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859/7 "2023-10-26T17:27:47Z")

</div>

I apologize, the name of the file is `.rootrc` and I have it in home directory that is listed when I check `echo $HOME` in the terminal. When I start ROOT and give the command `gEnv->GetValue("Browser.Name", "")` it returns the value of `ROOT::Experimental::RWebBrowserImp`.

I did try moving the .rootrc file to the directory I will primarily be using root in, and the web based browser was successfully disabled. I’m not quite sure why this wasn’t happening with the rootrc file in the home directory, but this fix should work just fine. I appreciate all your help, thank you!

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [October 26, 2023, 6:33pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859/8 "2023-10-26T18:33:36Z")

</div>

See docu: [ROOT: TEnv Class Reference](https://root.cern/doc/master/classTEnv.html)

Do you have by chance shell variable `ROOTENV_NO_HOME` variable defined?  
And that `gSystem->GetHomeDirectory()` returns?

---

<div class="post-metadata">

**Author:** ![jfry299](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@jfry299](https://root-forum.cern.ch/u/jfry299)\
**Post date:** [October 26, 2023, 7:32pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859/9 "2023-10-26T19:32:01Z")

</div>

Ah yes, it seems the `ROOTENV_NO_HOME` variable was defined, although I don’t remember ever setting it. Now that I’ve unset the variable, the web browser is disabled. Thank you for the help, Sergey!!
