# Cannot display canvas with snap package

**URL:** <https://root-forum.cern.ch/t/cannot-display-canvas-with-snap-package/62964>\
**Category:** Newbie\
**Tags:** root\
**Created:** [February 17, 2025, 4:03pm UTC](https://root-forum.cern.ch/t/cannot-display-canvas-with-snap-package/62964 "2025-02-17T16:03:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HienDoan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/hiendoan/32/31800_2.png) [@HienDoan](https://root-forum.cern.ch/u/HienDoan)\
**Post date:** [February 17, 2025, 4:03pm UTC](https://root-forum.cern.ch/t/cannot-display-canvas-with-snap-package/62964/1 "2025-02-17T16:03:24Z")

</div>

Hello,

I have install root using the snap package.

```auto
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:

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

```

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

```auto
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

* * *

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [February 17, 2025, 4:10pm UTC](https://root-forum.cern.ch/t/cannot-display-canvas-with-snap-package/62964/2 "2025-02-17T16:10:03Z")

</div>

Hi,

Thanks for the post. This post could be of help [Help a newbie, root won't draw - #2 by Danilo](https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510/2)

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![HienDoan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/hiendoan/32/31800_2.png) [@HienDoan](https://root-forum.cern.ch/u/HienDoan)\
**Post date:** [February 18, 2025, 2:51pm UTC](https://root-forum.cern.ch/t/cannot-display-canvas-with-snap-package/62964/3 "2025-02-18T14:51:09Z")

</div>

Hi Danilo,

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

```auto
xhost +SI:localuser:<myusername>

```

Another workaround I also found in the links is:

```auto
xhost + 

```

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

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

```

Best,  
Hien.
