Skip to content

Commit f5c6509

Browse files
committed
[main] rootbrowse: instance a TRint instead of TApplication
This gives 2 advantages: it executes .rootlogon.C on startup (like the old rootbrowse did) and it provides an interactive prompt to the user while using rootbrowse.
1 parent 3e1597c commit f5c6509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/src/rootbrowse.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "logging.hxx"
1010
#include "optparse.hxx"
1111

12-
#include <TApplication.h>
12+
#include <TRint.h>
1313
#include <TBrowser.h>
1414
#include <TError.h>
1515
#include <TFile.h>
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
106106

107107
// NOTE: we need to instantiate TApplication ourselves, otherwise TBrowser
108108
// will create a batch application that cannot show graphics.
109-
TApplication app("rootbrowse", nullptr, nullptr);
109+
TRint app("rootbrowse", nullptr, nullptr);
110110

111111
if (!args.fWeb.empty())
112112
gROOT->SetWebDisplay(std::string(args.fWeb).c_str());

0 commit comments

Comments
 (0)