New TBrowser does not open a browser window

Hello,
I am setting up the root on my new laptop,
Instead of compile from the source I tried to install from the Fedora dnf package manager with
dnf install root
Then opening the root within the terminal, I tried to open a Browser with new TBrowser(), but no window pop out.

It seems that the TBrowser object is indeed constructed as there is an output:
(TBrowser *) 0x557bb4f4d9e0

I also tried
gROOT->IsBatch()
and it return false.

Any one can help me on this issue?
Many thanks


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.34.08
Platform: Fedora 42
Compiler: g++ (GCC) 15.0.1 20250329 (Red Hat 15.0.1-0)


Hi,

Do you have chrome browser installed?
That is output of:

root [2] gEnv->GetValue("WebGui.Chrome","")
(const char *) "/usr/bin/chromium"

And that output you get when create TBrowser. For me it is:

root [0] new TBrowser

ROOT comes with a web-based browser, which is now being started. 
Revert to TBrowser by setting "Browser.Name: TRootBrowser" in rootrc file or
by starting "root --web=off"
Find more info on https://root.cern/for_developers/root7/#rbrowser

Regards,
Sergey

Hi Sergey,

Thanks for you reply, but I really mean root browser to open .root file rather than the internet broswer. I think it is default on root-6

No, default is web-based browser.
To open ‘classical’ one you have to run:

[shell] root --web=off file.root -e 'new TBrowser'

OK, great, thanks!