Skip to content

Issues with opening UI apps, display export problem? #97

@jensbrak

Description

@jensbrak

Have:

  • A Windows 10 pro machine with Virtualization and WSL2 setup
  • Installed Ubuntu via MS Store and verified it works
  • Installed xfce4 on Ubuntu WSL from shell in order to run full Desktop Manager
  • Installed GWSL via MS Store
  • Configured GWSL as per instructions (as far as I know)

Expected: UI apps started from Linux shell/Ubuntu WSL to pop up in Windows

Get: Nothing happens visually. Process for app starts and seems to run but is not visible. The process has a pid in the shell but window is just not to be found/seen.

Observations:

  • After installation/setup, GWSL has updated my .bashrc with some exports, notably the DISPLAY variable
  • DISPLAY is set to $(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 which evaluates to the IP adress of my virtual machine IP which is the Ethernet adapter vEthernet (WSL) ip address under ipconfig
  • On a previous installation of Ubuntu under WSL I successfully ran xfce4 but only together with xrdp and connecting with mstsc (ie Remote Desktop) to it. I have not managed to get that working again after installing GWSL.

Test (which led me to post this "issue" which is more of a general question):

  • Manually setting the DISPLAY variable to my physical ip local adress rather than the virtual one. Then start an UI app from Ubuntu shell. App with UI starts and is displayed in a window in Windows - as I would have expected it to from the start.

In other words: export DISPLAY=<vEthernet WSL IP>:0.0 does not work
However: export DISPLAY=<Ethernet LAN IP>:0.0 does work as far as I can tell

Questions:

  1. What am I missing here? OR what assumption does the manual for GWSL do that I've missed, if any obvious by my rather short summary?
  2. Or does GWSL, in fact, have an issue of some sorts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions