mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.11k stars 104 forks source link

Sessions opening in Windows home, not Linux home #314

Closed bobf32 closed 2 years ago

bobf32 commented 2 years ago

Hi,

I notice that my WSL sessions are suddenly opening with the current directory set to /mnt/c/Users/<Windows username>. I'm pretty sure they used to open at /home/<WSL username>, which is the behaviour I want.

My shortcut to starting a WSL session is:

%LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL="Ubuntu" --configdir="%APPDATA%\wsltty" -~  -

Has something changed? Just upgraded from 3.5.something to 3.6 and same behaviour in both versions.

Biswa96 commented 2 years ago

I can not reproduce the issue in my system. Things are working as intended. See the following screenshot. image

mintty commented 2 years ago

Wsltty installation creates shortcuts for both start directory. The ones that start in the Windows %USERPROFILE% are placed in folder WSLtty of the Start menu. Maybe you accidently used one of those?

mintty commented 2 years ago

Closing for missing indication of an issue.

bobf32 commented 2 years ago

Think I solved this. I had installed https://github.com/DamionGans/ubuntu-wsl2-systemd-script which I think changed my startup dir. Running https://github.com/FiestaLake/ubuntu-wsl2-systemd-script/blob/master/uninstall.sh fixed the issue.

mintty commented 2 years ago

... which I think changed my startup dir.

... which it should not do. If that's the case, please report an issue to that project.