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

Ubuntu not considered as WSL for drag and drop #17691

Closed
dgl opened this issue Aug 9, 2024 · 3 comments
Closed

Ubuntu not considered as WSL for drag and drop #17691

dgl opened this issue Aug 9, 2024 · 3 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@dgl
Copy link

dgl commented Aug 9, 2024

Windows Terminal version

1.20.11781.0

Windows build number

10.0.22631.0

Other Software

Ubuntu 22.04.3 LTS (standard WSL build; installed via wsl --install Ubuntu)

Steps to reproduce

Drag a file from explorer to the terminal.

Expected Behavior

I get the path in Linux form.

Actual Behavior

I get an untranslated Windows path.

I think this is because the profile that WSL set-up for me uses ubuntu.exe rather than WSL.

Relevant snippet of my settings.json is like this:

            {
                "colorScheme": "Campbell",
                "font":
                {
                    "size": 12.0
                },
                "guid": "{51855cb2-8cce-5362-8f54-464b92b32386}",
                "hidden": false,
                "name": "Ubuntu",
                "scrollbarState": "hidden",
                "source": "CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc"
            },
  [...]
            {
                "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
                "hidden": true,
                "name": "Ubuntu",
                "source": "Windows.Terminal.Wsl"
            },

https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalControl/ControlInteractivity.cpp#L737 matches on source being Windows.Terminal.Wsl but that has been hidden, as far as I'm aware the only config I've changed is via the UI to change the colour scheme and scrollbar settings. Clearly now I've worked this out I can fix the config, but it isn't obvious the Ubuntu app isn't considered WSL...

@dgl dgl added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Aug 9, 2024
@dgl
Copy link
Author

dgl commented Aug 9, 2024

Oh, looks like a dupe of #12961 -- somehow missed that to start with. This was on a clean Windows 11 install which is somewhat surprising. Seems like something should prefer the Windows.Terminal.Wsl profile if one exists, not just because the Ubuntu one has an awful default colour scheme.

@carlos-zamora
Copy link
Member

Thanks! We're hoping to improve on this sometime soon. We'll mark this as a /dup of #12961

Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants