WhitewaterFoundry / Pengwin

A Linux distro optimized for WSL based on Debian.
Other
1.48k stars 105 forks source link

Windows Terminal "Open in Terminal" explorer.exe right-click context menu not working properly #752

Open eggbean opened 2 years ago

eggbean commented 2 years ago

In Windows Terminal settings when the Command line setting it set to: %ProgramFiles%\WindowsApps\WhitewaterFoundryLtd.Co.16571368D6CFF_22.3.2.0_x64__kd1vv0z0vy70w\DistroLauncher\pengwin.exe the explorer.exe right-click context menu item to "Open in Terminal" doesn't work, as "does not respect the starting directory".

To get around this I have changed Command line: to wsl -d WLinux and Starting directory to ~.

Apparently this problem also occurs in WSL Ubuntu.

Ah, this is the same root cause as the Ubuntu startingDirectory bug. Pengwin has included a JSON file that overrides the commandline to point to pengwin.exe, but pengwin.exe does not respect the starting directory. Any executable that ignores its working directory will exhibit this behavior.

https://github.com/microsoft/terminal/issues/13952?notification_referrer_id=NT_kwDOAAxwz7E0MzYzOTU2MDczOjgxNTMxMQ#issuecomment-1241393694

I don't yet know if there are any problems caused by this workaround. I'll report them here if I find any.

crramirez commented 2 years ago

Probably because we needed to put a Starting Directory in the Json fragment as a workaround for an issue that Windows Terminal had.

Another workaround would be installing the Open with Pengwin option in pengwin-setup.

Thanks for reporting, we will figure out how to fix it.

Regards, Carlos