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

wslu guesses wrong path #310

Closed
1 task done
Schievel1 opened this issue Apr 16, 2024 · 1 comment
Closed
1 task done

wslu guesses wrong path #310

Schievel1 opened this issue Apr 16, 2024 · 1 comment
Assignees
Labels
Bug This is either an issue that describes a bug or a PR that resolves a bug

Comments

@Schievel1
Copy link

Windows Version

Windows 10

Windows Build Number

19045

WSL Version

WSL 2

Distro Version

Gentoo amd64 (stable)

WSL Utilities Version

4.1.1

Describe the bug

When I do
wslview . for example, the path to the folder in wsl is resolved to /lxss/...
Example:

➜ wslview --debug .
[debug:/usr/bin/wslview] Showing debug output.
[debug:/usr/bin/wslview] source default setting
[debug:/usr/bin/wslview] /etc/wslu/conf found, sourcing
[debug:/usr/bin/wslview] first run or update_time not present; calling var_gen
[debug:/usr/bin/wslview] var_gen: called
[debug:/usr/bin/wslview] baseexec_gen: called
[debug:/usr/bin/wslview] baseexec_gen: winbuild: 19045
[debug:/usr/bin/wslview] baseexec_gen: 19H1 or higher
[debug:/usr/bin/wslview] baseexec_gen: imported distro
[debug:/usr/bin/wslview] distro: gentoo
[debug:/usr/bin/wslview] lname: .
[debug:/usr/bin/wslview] WSLVIEW_DEFAULT_ENGINE: powershell
[debug:/usr/bin/wslview] Received linux relative path
[debug:/usr/bin/wslview] properfile_full_path: /home/pascal
[debug:/usr/bin/wslview] validating whether if it is a link
[debug:/usr/bin/wslview] It is not a link
[debug:/usr/bin/wslview] cmd: "\lxss\home\pascal"
[debug:/usr/bin/wslview] winps_exec: called with command Start "\lxss\home\pascal"
Start : This command cannot be run due to the error: The system cannot find the file
specified.
At line:1 char:128
+ ... = [System.Text.Encoding]::GetEncoding(850); Start "\lxss\home\pascal"
+                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationExcepti
   on
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartP
   rocessCommand

Steps to Reproduce

  1. Install wslu
  2. type wslview . in WSL-Terminal

Expected behavior

wslu opens an explorer window with the current directory

Additional context

wslview "https://www.github.com" works.
wslpath . also resolves the path to /lxss/...

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Schievel1 Schievel1 added the Bug This is either an issue that describes a bug or a PR that resolves a bug label Apr 16, 2024
@Schievel1
Copy link
Author

This is because I had https://github.com/laurent22/wslpath installed. So this was called instead of MS' wslpath.
I deleted wslpath in /usr/bin and it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is either an issue that describes a bug or a PR that resolves a bug
Projects
None yet
Development

No branches or pull requests

2 participants