msys2 / msys2-launcher

Helper for launching MSYS2 shells

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pinning (and running from explorer) broken

AeliusSaionji opened this issue · comments

Hello!

I'm on Windows 10.

If I run the exe by double clicking from explorer, I get dumped into /.
If I run msys2.exe from cmd, it correctly navigates to my $HOME as defined in /etc/nsswitch.conf
If I pin this running process, later invocations dump me into /.

The CHERE value in msys2.ini has no effect.
The msys2.ini values do show up in the terminal environment

Here is the created shortcut
image

Thanks!

Sorry for the late response.

AFAICT your observations are correct but not the deduction. My testing shows that you always start in the CWD:

If I run the exe by double clicking from explorer, I get dumped into /.

Because it starts in C:\tools\msys64 which inside MSYS2 is /.

If I run msys2.exe from cmd, it correctly navigates to my $HOME as defined in /etc/nsswitch.conf

Because Cmd starts in your %USERPROFILE% which I think you've set up as your $HOME inside MSYS2.

If I pin this running process, later invocations dump me into /.

Because as seen on the screenshot, the working directory is again set to C:\tools\msys64 which inside MSYS2 is /.


Do you by any chance have CHERE_INVOKING set up globally?