# Draw() method - No window pops up

**URL:** <https://root-forum.cern.ch/t/draw-method-no-window-pops-up/52538>\
**Category:** Newbie\
**Created:** [November 28, 2022, 8:55pm UTC](https://root-forum.cern.ch/t/draw-method-no-window-pops-up/52538 "2022-11-28T20:55:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [November 29, 2022, 8:39am UTC](https://root-forum.cern.ch/t/draw-method-no-window-pops-up/52538/6 "2022-11-29T08:39:18Z")

</div>

Instead of `export DISPLAY="localhost:0`, you can try these lines in your .bashrc (especially ff you have WSL2):

```auto
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
export LIBGL_ALWAYS_INDIRECT=1

```

See also the thread [here](https://root-forum.cern.ch/t/root-on-windows-11-wsl2-wslg/48348/7).

---

_[View the full topic](https://root-forum.cern.ch/t/draw-method-no-window-pops-up/52538)._
