Eugeny / tabby

A terminal for a more modern age
https://tabby.sh
MIT License
59.11k stars 3.39k forks source link

MSYS2 environment $HOME still points to /c/Users/<UserID> #6195

Open lbmeng opened 2 years ago

lbmeng commented 2 years ago

Describe the problem:

MSYS2 environment $HOME is incorrectly pointed to /c/Users/\<UserID>, but it should be pointed to /home/\<UserID> This issue was previously filed as https://github.com/Eugeny/tabby/issues/6079, but it seemed to get partially fixed in 1.0.175.

1.0.175 seems to only fix the starting directory so that it points to /home/\<UserID>, but the $HOME environment variable still points to /c/Users/\<UserID>

To Reproduce:

Check the $HOME environment of the MSYS2. It points to /c/Users/\<UserID>.

Charles94jp commented 2 years ago

我也遇到了这个问题,关键 /c/Users/\<UserID> 做home目录并不能使用ohmyfish,.bashrc也不起作用,只能用 /home/\<UserID> 。听你这么一说,通过设置环境变量可以暂时纠正这个bug。 image

Issues-translate-bot commented 2 years ago

The translator bot has detected that this issue body's language is not English, and has translated it automatically.


I also encountered this problem, the key /c/Users/\<UserID> is the home directory and cannot use ohmyfish, and .bashrc does not work, only /home/\<UserID> . Listening to you, this bug can be temporarily corrected by setting an environment variable. image

dofuuz commented 1 year ago

I think the problem is caused here: https://github.com/Eugeny/tabby/blob/c0352bceac21f3e14f4699fdad07e87c48ad7bcb/app/src/entry.ts#L24-L26

Related change: https://github.com/Eugeny/tabby/blob/c0352bceac21f3e14f4699fdad07e87c48ad7bcb/extras/clink/CHANGES?plain=1#L335