Pengwin icon indicating copy to clipboard operation
Pengwin copied to clipboard

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

Open eggbean opened this issue 3 years ago • 1 comments

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.

eggbean avatar Sep 09 '22 03:09 eggbean

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

crramirez avatar Sep 09 '22 11:09 crramirez