I have just start learning root. I used Draw in my code but when i run it i get the error below
Error in TGClient::TGClient: can’t open display “:1”, switching to batch mode…
In case you run from a remote ssh session, reconnect with ssh -Y
Also if i run TBwroser I get simliar error
Error in TGClient::TGClient: can’t open display “:1”, switching to batch mode…
In case you run from a remote ssh session, reconnect with ssh -Y
(TBrowser *) 0x55c67dc937d0
I am not working remotely, i am running it on my laptop.
TBrowser a
Error in <TGClient::TGClient>: can't open display ":1", switching to batch mode...
In case you run from a remote ssh session, reconnect with ssh -Y
(TBrowser &) Name: Browser Title: ROOT Object Browser
Ok your environment says one thing ($DISPLAY is :1) but ROOT does not agree that it’s a valid display.
Can you think of any program or setting in your Linux environment that might mess with the display settings?
We can do a quick and desperate try, running in the terminal: export DISPLAY=:0 and then in the same terminal trying out that ROOT command (for example, just to check what happens).
Fedora defaults to Wayland as the display server protocol. ROOT doesn’t have Wayland native support, and should be running with XWayland which is a compatibility shim that lets X11 applications run in Wayland.
It’s likely that this is failing for whatever reason, though I can’t offer much advice as to why, because it should be automatic.
As a workaround, on the Fedora login screen you should be able to select the option to fallback to using X11 entirely, by clicking “GNOME on Xorg”
Yep James is right and you are using the new Wayland display server rather than the classic X11. ROOT does not support Wayland directly, and I’m not sure why the compatibility layer fails in this case. Hopefully some other user might have a suggestion.
@dpkkumr could you check if your system has Xwayland installed? dnf list installed "*Xwayland*" For me it is and I didn’t add it by hand, so it came installed by default…