Skip to content

.rootlogon.C ignored when running TRootBrowser #20674

@ktht

Description

@ktht

Check duplicate issues.

  • Checked for duplicates

Description

Just what the title says. The settings specified in .rootlogon.C are respected when using the web browser, but not when using the old-style GUI.

Reproducer

Add this to your .rootrc to enable the old-style GUI:

Browser.Name:               TRootBrowser

And these lines which I took from my .rootlogon.C to thicken up the lines and add grid lines:

void _rootlogon()
{
  gStyle->SetCanvasDefH(2*gStyle->GetCanvasDefH());
  gStyle->SetCanvasDefW(2*gStyle->GetCanvasDefW());
  gStyle->SetFrameBorderSize(2*gStyle->GetFrameBorderSize());
  gStyle->SetFrameLineWidth(2*gStyle->GetFrameLineWidth());
  gStyle->SetFuncWidth(2*gStyle->GetFuncWidth());
  gStyle->SetGridWidth(2*gStyle->GetGridWidth());
  gStyle->SetHistLineWidth(4*gStyle->GetHistLineWidth()); // thick lines
  gStyle->SetCanvasBorderSize(2*gStyle->GetCanvasBorderSize());
  gStyle->SetLegendBorderSize(2*gStyle->GetLegendBorderSize());
  gStyle->SetPadBorderSize(2*gStyle->GetPadBorderSize());
  gStyle->SetStatBorderSize(2*gStyle->GetStatBorderSize());
  gStyle->SetTitleBorderSize(2*gStyle->GetTitleBorderSize());

  gStyle->SetPadGridX(true);
  gStyle->SetPadGridY(true);

  gROOT->ForceStyle();
}

ROOT version

Worked perfectly fine up to version 6.36.04. Upgraded to 6.38.00 yesterday and it no longer works. Had to downgrade.

Installation method

Package manager (yay)

Operating system

Manjaro Linux

Additional context

PKGBUILD from which the tarball was built.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions