Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error 0x80070002 when launching `pengwin.exe' #709

Open
Skystr1ke opened this issue Sep 12, 2021 · 6 comments
Open

error 0x80070002 when launching `pengwin.exe' #709

Skystr1ke opened this issue Sep 12, 2021 · 6 comments

Comments

@Skystr1ke
Copy link

Whenever I try to run Pengwin in Windows Terminal, it says, "[error 0x80070002 when launching `pengwin.exe']". What's happening?

@crramirez
Copy link
Collaborator

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.
image

Regards,
Carlos

@Skystr1ke
Copy link
Author

Skystr1ke commented Sep 13, 2021 via email

@nikolaosginos
Copy link

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!

@crramirez
Copy link
Collaborator

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

@nikolaosginos
Copy link

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!

@crramirez
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants