-
Notifications
You must be signed in to change notification settings - Fork 377
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
docker-for-win: support PowerShell #157
Comments
I did a test in Powershell, too. It works here. x11docker itself checks
Can you check |
With 'Windows PowerShell' or 'Windows PowerShell ISE':
With 'Windows PowerShell (x86)' or 'Windows PowerShell ISE (x86)':
With 'Debian GNU/Linux':
|
Thanks. I would expect that x11docker will already work on your system in 'Windows PowerShell' or 'Windows PowerShell ISE'. I did my own test run in just 'Powershell'. |
The error reported in the first comment corresponds to 'Windows PowerShell'. I get the same result with either of them. EDIT 'Windows PowerShell':
'Windows PowerShell (x86)':
|
There will be several changes for x11docker on MS Windows (#160). |
I've installed a new Windows developer VM (WinDev1905Eval) and run x11docker with
It succeeds, I still cannot reproduce the issue. As I don't intend to officially support Windows PowerShell, I'll close this ticket. |
PS C:\> bash
eine@DESKTOP-E1ER43H:/mnt/c$ /mnt/d/data-dev/github/runx/runx -- /mnt/d/data-dev/github/x11docker/x11docker -e xterm
runx note: MSYS2 does not provide xauth to create a cookie.
Fallback: Enabling discouraged option --no-auth.
runx ERROR: No X server found for MSYS2.
Please install X server VcXsrv:
https://sourceforge.net/projects/vcxsrv Anyway, I'll focus on #165. |
The issue here might be related to the failing WSL runs in #165. I've changed the order of the Cygwin/MSYS2/WSL check, maybe that fixes this issue as well as the WSL failures in #165. Previously WSL was checked first, now at last. The new check:
|
Yes, it is available in WSL: ~$ cyg
cygcheck.exe cygpath.exe cygwin-console-helper.exe
~$ which cygcheck.exe
/mnt/c/msys64/usr/bin/cygcheck.exe
It works now. Both when launching WSL or when running bash from PowerShell. Some probably fixable messages are shown: # runx -- x11docker -e xterm
...
mkdir: cannot create directory ‘/run/user/1000’: Permission denied
chown: cannot access '/run/user/1000': No such file or directory
chmod: cannot access '/run/user/1000': No such file or directory
... |
Great!
I'll look into this. Do you get an output in WSL or PowerShell for:
? |
No. It's empty/unset. No matter if I check it in WSL, Cygwin or MSYS. |
The |
Ref #148.
Since x11docker is itself a single bash script, adapting it to a batch script would imply rewriting almost the full project. Furthermore, x11docker relies on several tools that are normally found on Linux/Bash contexts, so I don't think it is a matter of syntax only.
This is a specific requirement, and we might be able to work around it. It is currently possible to execute
bash
from PowerShell, and it seems that the integration will improve in upcoming versions: https://www.youtube.com/watch?v=lwhMThePdIo.So, it might be possible to use x11docker from PowerShell with VcXsrv, without requiring neither cygwin nor msys2. Cygwin would still be required in order to use
--xwin
.I just tried the following:
The text was updated successfully, but these errors were encountered: