-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Don't generate WSL distributions for Rancher Desktop #12757
Comments
@benhillis & @craigloewen-msft as an FYI. Was there ever any further progress on enabling WSL dristros to mark themselves as service machines vs actual user-facing ones? That was a agood idea that I don't believe ever really got traction. Manually suppressing these distros is easy, but that's just a game of wack-a-mole. I feel like if two different entities have done this now, it's only a matter of time till more copy the pattern. There needs to be a more official way to clearmy markup these distros. |
(I may also suggest posting a similar issue on the WSL repo to make sure this stays on their triage queue 😝) |
Fragment extensions may be a good distro-driven way to handle this! It's worth checking out whether fragments can set It's slightly worse than us not generating them, as they'll show up in the settings UI. |
Doesn't look like a feature request was ever created on the WSL repo following up on the original metadata idea from #3556, so I'm not sure its even in their triage queue (unless there were off-GitHub discussions about it). @zadjii-msft About posting a similar issue to WSL, were you talking to me or the WSL devs you tagged? |
We may want to follow up on this discussion upstream in rancher-sandbox/rancher-desktop#818. I don't totally think it's tenable for us to continually manually exclude applications that are doing weird things with WSL distros like this. A better way would be having some property that apps can set to mark their distros themselves as not user-facing, but I suspect that'll never happen (@craigloewen-msft can correct me if I'm wrong). Admittedly though, https://github.com/microsoft/terminal/pull/4156/files was super trivial and would not take a lot of work for someone to add additional distros there. As much as I'd prefer pursuing the technically correct solution, just monkey-patching that would be the quickest way to the best results.
Literally just copy #4156, for these two distros. |
@zadjii-msft we definitely have it on our backlog to have a way for distros to mark themselves as non-user facing, but it isn't on our short term roadmap yet. |
Don't generate a profile for rancher-desktop utility WSL distro. Adds a check for rancher-desktop as well as docker. As mentioned in the discussion of this issue. This becomes much more difficult to maintain once other folks inevitably start to follow this pattern. But the easy win was up for grabs so I took it :) Closes #12757
Don't generate a profile for rancher-desktop utility WSL distro. Adds a check for rancher-desktop as well as docker. As mentioned in the discussion of this issue. This becomes much more difficult to maintain once other folks inevitably start to follow this pattern. But the easy win was up for grabs so I took it :) Closes #12757 (cherry picked from commit 10bdadf) Service-Card-Id: 89001998 Service-Version: 1.17
Description of the new feature/enhancement
Feature request #3556 suggested blocking Terminal from auto-generating profiles for Docker Desktop's service WSL2 machines, and this was accepted and implemented.
Rancher Desktop is a new alternative to Docker for Windows developed by Rancher/SUSE and optimised for containerd and Kubernetes; and it uses a similar WSL2-based backend with two managed service machines:
rancher-desktop
andrancher-desktop-data
. This leads to Terminal auto-generating profiles for these machines, even if there is no practical reason to ever use them.A workaround for this is to hide the two entries from the profile list with the Settings GUI or in settings.json:
Terminal should extend this blocking feature to include Rancher Desktop's service machines too, with the likelihood of future apps bundling more WSL service machines in mind.
Proposed technical implementation details (optional)
This could be achieved in a few different ways:
settings.json
during app installationMain benefit of options 2 and 3 is eliminating the burden on the Terminal team of maintaining a hard-coded blocklist, and dealing with further requests like these in future. I could see both 2 and 3 in combination being the ideal solution in the long term.
The text was updated successfully, but these errors were encountered: