<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18912.1001]
Windows Terminal version (if applicable): commit 2da5b0b"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18912.1001]
Windows Terminal version (if applicable): commit 2da5b0b
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Build a terminal, open WSL profile.</p>
<ol dir="auto">
<li>
<p dir="auto">If setting(profiles.json) has startingDirectory, erase it.<br>
<strong>At commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/terminal/commit/2da5b0b14682f5522b84116b3e6a6688de3c7423/hovercard" href="https://github.com/microsoft/terminal/commit/2da5b0b14682f5522b84116b3e6a6688de3c7423"><tt>2da5b0b</tt></a>, there is no startingDirectory for WSL</strong></p>
</li>
<li>
<p dir="auto">Set "startingDirectory" : "%USERPROFILE%"</p>
</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Both WSL starts at home directory as user. (/home/username/)</p>
<h1 dir="auto">Actual behavior</h1>
<ol dir="auto">
<li>if there is no startingDirectory, WSL starts at <strong>/mnt/c/WINDOWS/System32</strong></li>
<li>if startingDirectory is %USERPROFILE%, WSL starts at <strong>/mnt/c/Users/Windows-Username</strong></li>
</ol>
<ul dir="auto">
<li>
<p dir="auto">Your Windows build number:  <code class="notranslate">Microsoft Windows [Version 10.0.18362.86]</code></p>
</li>
<li>
<p dir="auto">What you're doing and what's happening:<br>
Setting the starting directory for wsl in <code class="notranslate">profiles.json</code> doesn't make it point to the right directory.</p>
</li>
</ul>
<ol dir="auto">
<li>Take the config below :-</li>
</ol>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
        &quot;startingDirectory&quot;: &quot;C:/Users/joshj/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc/LocalState/rootfs/home/tackyunicorn&quot;,
        &quot;guid&quot;: &quot;{a2785f8e-72c9-4550-b406-697388644902}&quot;,
        &quot;name&quot;: &quot;Ubuntu&quot;,
        &quot;colorscheme&quot;: &quot;MonokaiVivid&quot;,
        &quot;historySize&quot;: 9001,
        &quot;snapOnInput&quot;: true,
        &quot;cursorColor&quot;: &quot;#FFFFFF&quot;,
        &quot;cursorHeight&quot;: 25,
        &quot;cursorShape&quot;: &quot;vintage&quot;,
        &quot;commandline&quot;: &quot;wsl.exe&quot;,
        &quot;fontFace&quot;: &quot;Inconsolata for Powerline&quot;,
        &quot;fontSize&quot;: 10,
        &quot;acrylicOpacity&quot;: 1,
        &quot;useAcrylic&quot;: true,
        &quot;closeOnExit&quot;: true,
        &quot;padding&quot;: &quot;10, 10, 10, 10&quot;,
        &quot;icon&quot;: &quot;ms-appdata:///roaming/ubuntu.png&quot;
}"><pre class="notranslate">{
        <span class="pl-ent">"startingDirectory"</span>: <span class="pl-s"><span class="pl-pds">"</span>C:/Users/joshj/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc/LocalState/rootfs/home/tackyunicorn<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{a2785f8e-72c9-4550-b406-697388644902}<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Ubuntu<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"colorscheme"</span>: <span class="pl-s"><span class="pl-pds">"</span>MonokaiVivid<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"historySize"</span>: <span class="pl-c1">9001</span>,
        <span class="pl-ent">"snapOnInput"</span>: <span class="pl-c1">true</span>,
        <span class="pl-ent">"cursorColor"</span>: <span class="pl-s"><span class="pl-pds">"</span>#FFFFFF<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"cursorHeight"</span>: <span class="pl-c1">25</span>,
        <span class="pl-ent">"cursorShape"</span>: <span class="pl-s"><span class="pl-pds">"</span>vintage<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span>wsl.exe<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"fontFace"</span>: <span class="pl-s"><span class="pl-pds">"</span>Inconsolata for Powerline<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">10</span>,
        <span class="pl-ent">"acrylicOpacity"</span>: <span class="pl-c1">1</span>,
        <span class="pl-ent">"useAcrylic"</span>: <span class="pl-c1">true</span>,
        <span class="pl-ent">"closeOnExit"</span>: <span class="pl-c1">true</span>,
        <span class="pl-ent">"padding"</span>: <span class="pl-s"><span class="pl-pds">"</span>10, 10, 10, 10<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"icon"</span>: <span class="pl-s"><span class="pl-pds">"</span>ms-appdata:///roaming/ubuntu.png<span class="pl-pds">"</span></span>
}</pre></div>
<p dir="auto">This results in wsl starting up in the root folder<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26558907/57397677-d9179c80-71ea-11e9-9f35-a1176a5368d8.png"><img src="https://user-images.githubusercontent.com/26558907/57397677-d9179c80-71ea-11e9-9f35-a1176a5368d8.png" alt="issue1" style="max-width: 100%;"></a></p>
<ol start="2" dir="auto">
<li>In this config :-</li>
</ol>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
        &quot;startingDirectory&quot;: &quot;/home/tackyunicorn&quot;,
        &quot;guid&quot;: &quot;{a2785f8e-72c9-4550-b406-697388644902}&quot;,
        &quot;name&quot;: &quot;Ubuntu&quot;,
        &quot;colorscheme&quot;: &quot;MonokaiVivid&quot;,
        &quot;historySize&quot;: 9001,
        &quot;snapOnInput&quot;: true,
        &quot;cursorColor&quot;: &quot;#FFFFFF&quot;,
        &quot;cursorHeight&quot;: 25,
        &quot;cursorShape&quot;: &quot;vintage&quot;,
        &quot;commandline&quot;: &quot;wsl.exe&quot;,
        &quot;fontFace&quot;: &quot;Inconsolata for Powerline&quot;,
        &quot;fontSize&quot;: 10,
        &quot;acrylicOpacity&quot;: 1,
        &quot;useAcrylic&quot;: true,
        &quot;closeOnExit&quot;: true,
        &quot;padding&quot;: &quot;10, 10, 10, 10&quot;,
        &quot;icon&quot;: &quot;ms-appdata:///roaming/ubuntu.png&quot;
}"><pre class="notranslate">{
        <span class="pl-ent">"startingDirectory"</span>: <span class="pl-s"><span class="pl-pds">"</span>/home/tackyunicorn<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{a2785f8e-72c9-4550-b406-697388644902}<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Ubuntu<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"colorscheme"</span>: <span class="pl-s"><span class="pl-pds">"</span>MonokaiVivid<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"historySize"</span>: <span class="pl-c1">9001</span>,
        <span class="pl-ent">"snapOnInput"</span>: <span class="pl-c1">true</span>,
        <span class="pl-ent">"cursorColor"</span>: <span class="pl-s"><span class="pl-pds">"</span>#FFFFFF<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"cursorHeight"</span>: <span class="pl-c1">25</span>,
        <span class="pl-ent">"cursorShape"</span>: <span class="pl-s"><span class="pl-pds">"</span>vintage<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span>wsl.exe<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"fontFace"</span>: <span class="pl-s"><span class="pl-pds">"</span>Inconsolata for Powerline<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">10</span>,
        <span class="pl-ent">"acrylicOpacity"</span>: <span class="pl-c1">1</span>,
        <span class="pl-ent">"useAcrylic"</span>: <span class="pl-c1">true</span>,
        <span class="pl-ent">"closeOnExit"</span>: <span class="pl-c1">true</span>,
        <span class="pl-ent">"padding"</span>: <span class="pl-s"><span class="pl-pds">"</span>10, 10, 10, 10<span class="pl-pds">"</span></span>,
        <span class="pl-ent">"icon"</span>: <span class="pl-s"><span class="pl-pds">"</span>ms-appdata:///roaming/ubuntu.png<span class="pl-pds">"</span></span>
}</pre></div>
<p dir="auto">This results in wsl starting up in the Windows user folder<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26558907/57398045-ba65d580-71eb-11e9-9109-79a9ad601e12.png"><img src="https://user-images.githubusercontent.com/26558907/57398045-ba65d580-71eb-11e9-9109-79a9ad601e12.png" alt="issue2" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>What's wrong / what should be happening instead:<br>
The <code class="notranslate">startingDirectory</code> profile setting is not being applied correctly on a wsl profile</li>
</ul>