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

Can not find clip.exe when running in docker con #271

Open
mdeweerd opened this issue Dec 25, 2024 · 0 comments
Open

Can not find clip.exe when running in docker con #271

mdeweerd opened this issue Dec 25, 2024 · 0 comments

Comments

@mdeweerd
Copy link

mdeweerd commented Dec 25, 2024

Apparently the following code
detects "Microsoft" in /proc/version and assumes it can access clip.exe.

However, that is not the cas in the docker container running under docker on a windows machine. The docker container has a virtual display itself and provides the clipboard.

So I think the detection needs to be fine-tuned.

class TestWSL(_TestClipboard):
if platform.system() == 'Linux':
with open('/proc/version', 'r') as f:
if "Microsoft" in f.read():
clipboard = init_wsl_clipboard()

The goal of docker is to not give away that the application is running in docker and they suggest to set a variable.

However I found:

/etc/resolv.conf:# Generated by Docker Engine.
/etc/resolv.conf:# This file can be edited; Docker Engine will not make further changes once it

/proc/mounts:overlay / overlay rw,relatime,lowerdir=/var/lib/docker
/usr/local/bin/docker-entrypoint.sh:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant