# ROOT TBrowser not working outside terminal (6.26/02, Windows 10)

**URL:** <https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399>\
**Category:** ROOT\
**Tags:** windows, root\
**Created:** [November 16, 2022, 9:39pm UTC](https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399 "2022-11-16T21:39:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChristianTMWeber](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@ChristianTMWeber](https://root-forum.cern.ch/u/ChristianTMWeber)\
**Post date:** [November 16, 2022, 9:39pm UTC](https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399/1 "2022-11-16T21:39:54Z")

</div>

Dear ROOT experts,

I have recently installed ROOT 6.26/02 for x64 via the [installer](https://root.cern/releases/release-62602/) on my up-to-date Windows 10 computer, which also has “Microsoft Visual Studio Community 2022 (64-bit) Version 17.3.5” installed.  
ROOT appears to be generally working, but I do seem to have an issue with the RBrowser.

If I double click on a .ROOT file to inspect it a new window opens, but instead of the RBrowser it displays that “This site can’t be reached”, and “ERR\_CONNECTION\_REFUSED”, among others.

If on the other hand I start ROOT in the command line and open a TBrowser with

` TBrowser TB`

It works fine, a new window with a functional ‘ROOT RBrowser’ opens, similiar to how it did for me on other computers with older ROOT versions.

I do undestand this is a minor issue, but I do like the convinience of inspection .ROOT files so easily.  
Is there a way to get the RBrowser working without having to call it explicitly from a terminal?

Best,  
Christian

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 17, 2022, 8:14am UTC](https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399/2 "2022-11-17T08:14:27Z")

</div>

Hi, right, I suppose the file association has to be changed for `RBrowser`. Thanks for reporting the issue. I’m looking into it.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 17, 2022, 3:11pm UTC](https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399/3 "2022-11-17T15:11:57Z")

</div>

This is now fixed in the master branch. Note that one will need to use the `Quit ROOT Session` button ![image](https://root-forum.cern.ch/uploads/default/original/3X/0/4/04a5c529ab90eb0a7387327981ea144ad280a85c.png) in the browser in order to close the application.

---

<div class="post-metadata">

**Author:** ![ChristianTMWeber](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@ChristianTMWeber](https://root-forum.cern.ch/u/ChristianTMWeber)\
**Post date:** [November 17, 2022, 6:31pm UTC](https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399/4 "2022-11-17T18:31:14Z")

</div>

Dear Bellenot,

thank you for the prompt response and fix!  
Is the installer on the [website](https://root.cern/releases/release-62602/) also updated, or would I need to pull the repo and compile ROOT myself?

Best,  
Christian

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 17, 2022, 8:27pm UTC](https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399/5 "2022-11-17T20:27:14Z")

</div>

No, the installer has not been updated, it will be part of the next release. But no need to rebuild ROOT from source, you can simply edit the `%ROOTSYS%\macros\fileopen.C` file and replace this line (18):

```auto
    b->GetBrowserImp()->GetMainFrame()->Connect("CloseWindow()", 0, 0, "onBrowserClose()");

```

by these lines:

```auto
   TBrowserImp *bi = b->GetBrowserImp(); 
   if (dynamic_cast<TRootBrowser *>(bi) || dynamic_cast<TRootBrowserLite *>(bi)) 
      bi->GetMainFrame()->Connect("CloseWindow()", 0, 0, "onBrowserClose()");

```

And that should work

---

<div class="post-metadata">

**Author:** ![ChristianTMWeber](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@ChristianTMWeber](https://root-forum.cern.ch/u/ChristianTMWeber)\
**Post date:** [November 18, 2022, 12:26am UTC](https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399/6 "2022-11-18T00:26:42Z")

</div>

Thank you, Bellenot!

I made the change as suggested and can confirm that this fixes the double-click-.root-file functionality.

Much appreciated!

---

<div class="post-metadata">

**Author:** ![DJT](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/919ad9/32.png) [@DJT](https://root-forum.cern.ch/u/DJT)\
**Post date:** [December 1, 2022, 4:19pm UTC](https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399/7 "2022-12-01T16:19:03Z")

</div>

I had exactly the same problem and wasted hours trying to find a solution with Google before looking for one in the ROOT question box. bellenot’s solution worked for me too. Many thanks.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 15, 2022, 4:19pm UTC](https://root-forum.cern.ch/t/root-tbrowser-not-working-outside-terminal-6-26-02-windows-10/52399/8 "2022-12-15T16:19:10Z")

</div>

Closed on December 15, 2022, 4:19pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
