Pengwin
Pengwin copied to clipboard
error 0x80070002 when launching `pengwin.exe'
Whenever I try to run Pengwin in Windows Terminal, it says, "[error 0x80070002 when launching `pengwin.exe']". What's happening?
Hello @allthingslinux,
I don't know why Windows Terminal in some configurations gives this error executing the distro aliases. I cannot reproduce it.
In order to fix the issue go to Settings in Windows Terminal and change the "Command line" property in the profile to "wsl -d WLinux cd ~; $SHELL --login".
Run Pengwin from Start Menu at least once to generate the icon.

Regards, Carlos
Thank you, this worked perfectly!
On Sun, Sep 12, 2021 at 10:11 AM Carlos Rafael Ramirez < @.***> wrote:
Hello @allthingslinux https://github.com/allthingslinux,
I don't know why Windows Terminal in some configurations gives this error executing the distro aliases. I cannot reproduce it.
In order to fix the issue go to Settings in Windows Terminal and change the "Command line" property in the profile to "wsl -d WLinux cd ~; $SHELL --login".
Run Pengwin from Start Menu at least once to generate the icon. [image: image] https://user-images.githubusercontent.com/8397379/132992824-0ed7b94b-3403-4166-8490-88efd83c753f.png
Regards, Carlos
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WhitewaterFoundry/Pengwin/issues/709#issuecomment-917654657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU72MKS22AR7FHQ27YO5EQTUBS7INANCNFSM5D3SMKYA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thank you very much. I can also confirm that this works.
However, what about the Windows Start Menu entries that can be generated via pengwin-setup? They all try to use pengwin.exe. How do they need to be changed for them to work without pengwin.exe.
For example:
C:\WINDOWS\system32\wscript.exe %USERPROFILE%\wslu\runHidden.vbs "%LOCALAPPDATA%\Microsoft\WindowsApps\pengwin.exe" run "cd ~; bash -l -c /usr/bin/emacs"
Hope someone can help with that!
OK this break my head. Are you telling me that pengwin.exe is not located on this address? And you still can execute Pengwin from start menu?
I haven't been able to reproduce this kind of errors. I don't understand the configuration that leads to not to have the app alias.
Regards, Carlos
Thanks for the quick response. I have now checked to see if pengwin.exe is located in that directory. Interestingly it was there, but when I tried to execute it Windows told me it couldn't find it.
I have found a comment in this StackOverflow question indicating that turning the alias off an on again in the settings might make it work again. Indeed it did.
Now everything works fine. I also changed the command line setting in Windows Terminal back to pengwin.exe.
Thanks for your support!
We have fixed the two problems in the latest Pengwin version, 22.1.5. The Windows Terminal profile looks for the actual exe and not the alias. The start menu shortcuts were fixed as well, but they still need improvement.