Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG] Change the Default Distro Location not working #200

Closed
1 task done
joutvhu opened this issue Jul 26, 2023 · 5 comments
Closed
1 task done

[BUG] Change the Default Distro Location not working #200

joutvhu opened this issue Jul 26, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@joutvhu
Copy link
Contributor

joutvhu commented Jul 26, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have changed the Default Distro Location to F:\ProgramData\WSL2-Distros
image

However when I use Open with File Explorer or Move to default location it use path C:\WSL2-Distros
image
image

Expected Behavior

  • The folder F:\ProgramData\WSL2-Distros should be opened when clicking Open in File Explorer
  • The distributions should be saved in F:\ProgramData\WSL2-Distros when clicking Move
  • The folder C:\WSL2-Distros should not be created when open Application.

Steps To Reproduce

  1. Settings > change Default Distro Location
  2. Home > select a distribution > click Open in File Explorer

Environment

- Windows Version: 11 
- WSL Distro Manager Version: 1.8.5
- WSL Version: 2
- Source: 1.8.5

Anything else?

No response

@joutvhu joutvhu added the bug Something isn't working label Jul 26, 2023
@github-actions
Copy link

Hello there!
As you are a first time Issuer please read our Code of Conduct.
Please also check whether your issue description is reasonable and complete. If you are having an issue always include the version you are using (WSL, this app, Windows) as well as a way to reproduce it.

@HadiJadallah
Copy link

Yes, its an annoying bug. Stumbled upon it while freeing up some space from my C drive.

@joutvhu
Copy link
Contributor Author

joutvhu commented Aug 13, 2023

Hi @bostrot,
This error was caused by DistroPath not being set.
I fixed it in the following pull request #209
Please help to review the pull request

@Rakly3
Copy link

Rakly3 commented Oct 7, 2023

Now it simply crashes the distro manager when changing the volume path.

@bostrot bostrot reopened this Oct 7, 2023
@joutvhu
Copy link
Contributor Author

joutvhu commented Oct 10, 2023

The application crashed by the FilePicker.platform.getDirectoryPath method. I've seen it before.
If you change the path by selecting, the application will exit. If you change the path by typing, no error will appear.
Looks like it comes from the file_picker library.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants