Cannot display canvas with snap package

Hello,

I have install root using the snap package.

sudo snap install root-framework

a few days ago, so it should be one of the latest versions.

Then I tried to make a graph using TTree::Draw, in the interactive mode, as follow:

tree -> Draw( "var1:var2", "", "" );

The plot did not show up, and I got the following error message instead:

Authorization required, but no authorization protocol specified

How do I fix this?
Thank you very much!

__

ROOT Version: Not Provided
Platform: Ubuntu 24.04
Compiler: Not Provided


Hi,

Thanks for the post. This post could be of help Help a newbie, root won't draw - #2 by Danilo

Cheers,
D

1 Like

Hi Danilo,

Thank you for your reply. I followed the links you posted.
I fixed the problem by:

xhost +SI:localuser:<myusername>

Another workaround I also found in the links is:

xhost + 

But it does not seem to be secure enough because it shows a message:

$ xhost +
access control disabled, clients can connect from any host

Best,
Hien.

1 Like