wslu icon indicating copy to clipboard operation
wslu copied to clipboard

OpenSUSE Tumbleweed does not set path.

Open ZoomyCat opened this issue 8 months ago • 0 comments

Windows Version

Windows 11

Windows Build Number

22621.2506

WSL Version

WSL 2

Distro Version

OpenSUSE Tumbleweed

WSL Utilities Version

4.1.1-1

Describe the bug

An error is produced when trying to run rustup doc.

Steps to Reproduce

install rust, install wslu, run rustup doc. The following error happens: error: couldn't open browser: command 'wslview' did not execute successfully; exit status: 1 command stderr: Start : This command cannot be run due to the error: The system cannot find the file specified. At line:1 char:128

  • ... oding(437); Start "wsl.localhostopenSUSE-Tumbleweedhomezoomycat ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
    • FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

Expected behavior

Expected the system uses wslview after installing wslu.

Additional context

I ran export BROWSER="/usr/bin/wslview" then it worked.

Added to the end of my ~/.bashrc file resolved the issue. I suggest appending this line to the file upon install.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

ZoomyCat avatar Nov 05 '23 21:11 ZoomyCat