Using local installation of chrome (chrome in LXPLUS)

ROOT Version: 6.36.02, gcc13, el9

After a local installation of chrome (in ~/bin/local/) and providing the paths I’m unable to allow ROOT to see the browser.

The following code:
{
auto c1 = new TCanvas(“c1”,“url example”);
auto text = new TLatex(0.5,0.5,“ROOT web site”);
text->SetTextAlign(22);
text->SetName(“``https://root.cern``”);
c1->Add(text);
c1->SaveAs(“link.screenshot.pdf”);
}

executed with root -q -b --web=chrome test.C

returns
Error in <[ROOT.WebGUI] Error /build/jenkins/workspace/lcg_release_pipeline/build/projects/ROOT-6.36.02/src/ROOT/6.36.02/gui/webdisplay/src/RWebDisplayHandle.cxx:1204 in static bool ROOT::RWebDisplayHandle::ProduceImages(const std::vector<std::__cxx11::basic_string >&, const std::vector<std::__cxx11::basic_string >&, const std::vector&, const std::vector&, const char*)>: Fail to detect supported browsers for image production

I’m setting up source /cvmfs/sft.cern.ch/lcg/views/LCG_108/x86_64-el9-gcc13-opt/setup.sh

Hi Michael,

If one puts chrome browser in custom location, one need to provide path to executable
in .rootrc file like:

WebGui.Chrome: /home/user/bin/local/chrome

See more parameters which can be set in RWebWindowManager::ShowWindow documentation.

At the same time I recommend to use rootssh utility to work with lxplus. It allows to use web browser on your host, which will access root session via ssh tunnel. See short explanation for RBrowser which valid for all other web widgets as well.

Regards,
Sergey

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