Skip to content

[FEATURE REQUEST] Make Start in aware of WSL and allow a custom starting folder #23

Closed

Description

@vhxnyu

What it is for

On Windows, with Shell = wsl and Start in = Home, a new WSL session starts in the Windows user profile. Inside the distribution this appears as:

/mnt/c/Users/<user>

For example:
Image

But, a WSL user usually expects Home to mean the Linux user's home:

/home/<user>

The Shell field cannot be used for this either: it accepts an executable path only, not command-line arguments. For example, entering wsl ~ is rejected with:

shell is "wsl ~", which names no program

wsl ~ is one way to specify the starting directory for a WSL session.

How it should work

I can see three possible directions.

Option A: make Home shell-aware

  • Native shells: start in the platform's home, as today.
  • wsl: start in the distribution's Linux home.
  • One implementation would be to pass --cd ~ to wsl.exe, letting WSL resolve the user's Linux home instead of hardcoding /home/<user>.

Option B: add a Custom option to "Start in"

Option C: allow passing shell arguments

  • This would also cover other shells that take startup arguments.

References

No response

Checked

  • I searched the open issues for the same request.

Activity

  1. added
    enhancement
    on Oct 23, 2026
  2. Raiden-MeixElysia commented on Oct 24, 2026

    @Raiden-MeixElysia
    Contributor

    Thank you, @vhxnyu. You laid out the three ways clearly, and the first two are in on main now, for the next release:

    • Home knows WSL. With Shell wsl and Start in Home, a new session starts through wsl.exe --cd ~, so WSL resolves the distribution's own home. On a Windows 11 PC the session reported \\wsl.localhost\Ubuntu\home\<user>, where it used to stand in /mnt/c/Users/<user>.
    • Start in › Folder. A third choice starts every new session, the first one too, in a folder you pick in Settings › Terminal › Folder, typed or through Browse…. It must be a full path to a folder that exists; if it is not, the row says why and the setting stays as it was.

    Shell arguments stay out for now: Home and Folder cover both cases you named. A Windows folder you pick for a wsl session goes to WSL as it does today, which maps it under /mnt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions