Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative to VcXsrv/MobaXterm #1047

Open
musahi0128 opened this issue Apr 16, 2023 · 3 comments
Open

Alternative to VcXsrv/MobaXterm #1047

musahi0128 opened this issue Apr 16, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@musahi0128
Copy link

Is your feature request related to a problem:

Nope

Describe the solution you'd like:

Is there any way to use this as alternative to VcXsrv/MobaXterm? What I can think of, if i have a Linux running somewhere and accessible by ssh, I can port map the DISPLAY to localhost so any GUI apps can be presented by WSLg.

Describe alternatives you've considered:

Nope, just wondering if I have WSLg installed why do I need other Xserver.

Additional context:

No response

@musahi0128 musahi0128 added the enhancement New feature or request label Apr 16, 2023
@iainhallam
Copy link

iainhallam commented May 18, 2023

WSLG doesn't seem to be accessible to other Windows applications as an X server, but if you launch your SSH session from within WSL, it will have access to launch GUI apps within WSL as separate windows on your desktop. It's worth knowing that while this works, the hosted windows don't have any of the Windows window-management options like snapping, and are often temperamental with maximising, etc. - see #22.

@MrObvious
Copy link

WSLg uses RDP not X server and also uses Wayland.

@tchinchow
Copy link

MobaXterm v23.0 build 5042 here...

Disable or shutdown the X server then reset your DISPLAY variable:
export DISPLAY=:0

Works for "native connector", "localhost connection" and "wsl command".

+1:
It would be nice if MobaXterm could do this automagically so that we don't have to tweak our DISPLAY manually...
(under WSL2 only of course)...
It would be nice also because MobaXterm already tries to tweak the DISPLAY and with the above manual tweak then announce from the banner message makes the DISPLAY inconsistent with what we actually define manually.

BTW under WSL2 MobaXterms says it uses "MYEXTERNALIP:0.0" in the banner but echo $DISPLAY shows "127.0.0.1:0.0" ... strange ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants