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

WSL - creating links to Desktop/Documents #16

Open
1 of 2 tasks
tavareshugo opened this issue Oct 12, 2023 · 2 comments
Open
1 of 2 tasks

WSL - creating links to Desktop/Documents #16

tavareshugo opened this issue Oct 12, 2023 · 2 comments

Comments

@tavareshugo
Copy link
Contributor

tavareshugo commented Oct 12, 2023

TODO:

  • Update instructions using wslpath and powershell.exe to automatically fetch paths
  • Test instructions on users that have OneDrive as default

When participants use their own laptops in workshops, often they install WSL but don't setup the symbolic links to their Desktop, which means the course doesn't work later on.

Need to improve the instructions (maybe a video?)

@tavareshugo
Copy link
Contributor Author

tavareshugo commented Nov 30, 2023

I think this might work to programmatically set symbolic links to Windows files:

ln -s $(wslpath $(powershell.exe '[environment]::getfolderpath("mydocuments")')) ~/Documents
ln -s $(wslpath $(powershell.exe '[environment]::getfolderpath("desktop")')) ~/Desktop
ln -s $(wslpath $(powershell.exe '[environment]::getfolderpath("downloads")')) ~/Downloads

But I need to test this with someone that uses OneDrive.

For testing purpose:

echo $(wslpath $(powershell.exe '[environment]::getfolderpath("mydocuments")'))
echo $(wslpath $(powershell.exe '[environment]::getfolderpath("desktop")'))
echo $(wslpath $(powershell.exe '[environment]::getfolderpath("downloads")'))

@tavareshugo
Copy link
Contributor Author

tavareshugo commented Jan 17, 2024

The "downloads" keyword does not work. It has to be:

ln -s $(wslpath $(powershell.exe '[environment]::getfolderpath("UserProfile")' | tr -d '\r'))/Downloads ~/Downloads

This is now fixed on the current WSL setup page.

Still need to test this on someone with OneDrive.

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

1 participant