Skip to content

When trying to open a pull request it seems lazy git needs xdg-open package which isn't safe #2757

@wakywayne

Description

@wakywayne

Describe the bug
When trying to open a pull request it seems lazy git needs xdg-open package if you view the unbuntu docs here it says: xdg-open is for use inside a desktop session only. It is not recommended to use xdg-open as root. I feel like I would need to install this package as root to use with WSL Unbuntu. Isn't this dangerous? If not can someone tell me how I should go about installing this package for lazygit.

To Reproduce
Steps to reproduce the behavior:

  1. open lazygit on a wsl Unbuntu neovim project
  2. go to branch and click o
  3. see error message requiring xdg-open

Expected behavior
A pull request to be open without error

Version
commit=5149b24ab3dfad3860e2300519c7c583dcc8c9ff,
build date=2023-05-03T08:00:22Z,
build source=binaryRelease, version=0.38.2,
os=linux, arch=amd64,
git version=2.34.1

Additional context
to do a pull request from the cli I am using wslview which comes with the wslu package. Can I use this instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions