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

[Bug]: distrod_wsl_launcher fails if the user profile folder within Windows includes a space in name #37

Open
akuropka opened this issue Jan 25, 2022 · 4 comments

Comments

@akuropka
Copy link

Describe the bug

Import of the rootfs-image fails if the user profile folder within Windows includes a space such as Test User (derivated from a local user account name).

Steps to reproduce

Prerequisites:
distrod_wsl_launcher v0.1.5
Profile folder in Windows consisting out of two words.

Steps:
Start distrod_wsl_launcher an select an image or use a local file.

Expected behavior

WSL distro will be imported and installed.

Windows version

Microsoft Windows [Version 10.0.22000.466]

Linux kernel version

Linux 5.10.93.3-microsoft-WSL2 #1 SMP Sun Jan 23 18:53:16 CET 2022 x86_64 GNU/Linux

Distro

archlinux

How did you install that distro?

Installed by Distrod wizard

Logs

[Distrod][ERROR] Failed to register the distribution.
Caused by:
Failed: cmd.exe /C wsl --import Distrod %LocalAppData%\Distrod "C:\TEMP\system\.tmp2OMAbF\install.tar.gz"

additional comment

Fix:
Put the install location inside brackets.
%LocalAppData%\Distrod -> "%LocalAppData%\Distrod"

@sabrsorensen
Copy link

I'm also experiencing this issue, not sure of a way to work around it.

@titogarcia
Copy link

This is happening to me as well. Is there any possible workaround?

@akuropka
Copy link
Author

E.g. you need to temporarily change the LocalAppData variable to the 8.3 name of your userfolder.

@gitrojones
Copy link

To supplement the above with what worked for me:

  • Open cmd
  • Run cd C:\Users
  • Run dir /x - The 8.3 name will be in the fourth column. Something like FOOB~1 if user was Foo Bar
  • Open powershell
  • Run $env:LOCALAPPDATA = "<YOUR 8.3 NAME>"
  • cd to the folder with the distrod executable. eg. cd ~/Downloads/distrod_wsl_launcher-x86-64/
  • Run the installer. eg. .\distrod_wsl_launcher.exe

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

4 participants