Support linux paths for startingDirectory of WSL distros #850

Open
opened 2026-01-30 22:06:24 +00:00 by claunia · 0 comments
Owner

Originally created by @tackyunicorn on GitHub (May 8, 2019).

Originally assigned to: @DHowett on GitHub.

  • Your Windows build number: Microsoft Windows [Version 10.0.18362.86]

  • What you're doing and what's happening:
    Setting the starting directory for wsl in profiles.json doesn't make it point to the right directory.

  1. Take the config below :-
{
        "startingDirectory": "C:/Users/joshj/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc/LocalState/rootfs/home/tackyunicorn",
        "guid": "{a2785f8e-72c9-4550-b406-697388644902}",
        "name": "Ubuntu",
        "colorscheme": "MonokaiVivid",
        "historySize": 9001,
        "snapOnInput": true,
        "cursorColor": "#FFFFFF",
        "cursorHeight": 25,
        "cursorShape": "vintage",
        "commandline": "wsl.exe",
        "fontFace": "Inconsolata for Powerline",
        "fontSize": 10,
        "acrylicOpacity": 1,
        "useAcrylic": true,
        "closeOnExit": true,
        "padding": "10, 10, 10, 10",
        "icon": "ms-appdata:///roaming/ubuntu.png"
}

This results in wsl starting up in the root folder
issue1

  1. In this config :-
{
        "startingDirectory": "/home/tackyunicorn",
        "guid": "{a2785f8e-72c9-4550-b406-697388644902}",
        "name": "Ubuntu",
        "colorscheme": "MonokaiVivid",
        "historySize": 9001,
        "snapOnInput": true,
        "cursorColor": "#FFFFFF",
        "cursorHeight": 25,
        "cursorShape": "vintage",
        "commandline": "wsl.exe",
        "fontFace": "Inconsolata for Powerline",
        "fontSize": 10,
        "acrylicOpacity": 1,
        "useAcrylic": true,
        "closeOnExit": true,
        "padding": "10, 10, 10, 10",
        "icon": "ms-appdata:///roaming/ubuntu.png"
}

This results in wsl starting up in the Windows user folder
issue2

  • What's wrong / what should be happening instead:
    The startingDirectory profile setting is not being applied correctly on a wsl profile
Originally created by @tackyunicorn on GitHub (May 8, 2019). Originally assigned to: @DHowett on GitHub. * Your Windows build number: `Microsoft Windows [Version 10.0.18362.86]` * What you're doing and what's happening: Setting the starting directory for wsl in `profiles.json` doesn't make it point to the right directory. 1. Take the config below :- ```json { "startingDirectory": "C:/Users/joshj/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc/LocalState/rootfs/home/tackyunicorn", "guid": "{a2785f8e-72c9-4550-b406-697388644902}", "name": "Ubuntu", "colorscheme": "MonokaiVivid", "historySize": 9001, "snapOnInput": true, "cursorColor": "#FFFFFF", "cursorHeight": 25, "cursorShape": "vintage", "commandline": "wsl.exe", "fontFace": "Inconsolata for Powerline", "fontSize": 10, "acrylicOpacity": 1, "useAcrylic": true, "closeOnExit": true, "padding": "10, 10, 10, 10", "icon": "ms-appdata:///roaming/ubuntu.png" } ``` This results in wsl starting up in the root folder ![issue1](https://user-images.githubusercontent.com/26558907/57397677-d9179c80-71ea-11e9-9f35-a1176a5368d8.png) 2. In this config :- ```json { "startingDirectory": "/home/tackyunicorn", "guid": "{a2785f8e-72c9-4550-b406-697388644902}", "name": "Ubuntu", "colorscheme": "MonokaiVivid", "historySize": 9001, "snapOnInput": true, "cursorColor": "#FFFFFF", "cursorHeight": 25, "cursorShape": "vintage", "commandline": "wsl.exe", "fontFace": "Inconsolata for Powerline", "fontSize": 10, "acrylicOpacity": 1, "useAcrylic": true, "closeOnExit": true, "padding": "10, 10, 10, 10", "icon": "ms-appdata:///roaming/ubuntu.png" } ``` This results in wsl starting up in the Windows user folder ![issue2](https://user-images.githubusercontent.com/26558907/57398045-ba65d580-71eb-11e9-9109-79a9ad601e12.png) * What's wrong / what should be happening instead: The `startingDirectory` profile setting is not being applied correctly on a wsl profile
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#850