jesseduffield / jesseduffield/lazygit

pressing 'o' makes lazygit hang

Open
#3,539 9 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**
When pressing 'o' to open a file lazygit hangs.

**To Reproduce**
Steps to reproduce the behavior:
1. Open lazygit
2. press 'o' on a random file
3. lazygit then hangs

**Expected behavior**
The file gets opened with xdg-open

**Screenshots**

https://github.com/jesseduffield/lazygit/assets/80539964/92dd554d-6dad-470a-9d8c-71e65e367689

Running bash -c xdg-open "..." returns as follows and does not open anything.
![image](https://github.com/jesseduffield/lazygit/assets/80539964/9d24a2ef-31fa-4a3b-8f76-2d72567157ed)

Screenshot from debug:
![image](https://github.com/jesseduffield/lazygit/assets/80539964/a268cbc5-832e-4915-b542-49ca3af00329)

**Version info:**
_Run `lazygit --version` and paste the result here_
commit=v0.41.0, build date=2024-03-23T09:30:36Z, build source=binaryRelease, version=0.41.0, os=linux, arch=amd64, git version=2.44.0
_Run `git --version` and paste the result here_
git version 2.44.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.