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

pressing 'o' makes lazygit hang #3539

Open
DanViTrinh opened this issue Apr 29, 2024 · 6 comments
Open

pressing 'o' makes lazygit hang #3539

DanViTrinh opened this issue Apr 29, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@DanViTrinh
Copy link

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

2024-04-29_21-14-18.mp4

Running bash -c xdg-open "..." returns as follows and does not open anything.
image

Screenshot from debug:
image

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

@DanViTrinh DanViTrinh added the bug Something isn't working label Apr 29, 2024
@mark2185
Copy link
Collaborator

Are the files behind a symlink or are they symlinks themselves?

@DanViTrinh
Copy link
Author

they are symlinks themselves.

@mark2185
Copy link
Collaborator

And does bash -c "xdg-open /home/dan/.dotfiles/.config/lazygit/config.yml" work as expected? (note the quotes)

@DanViTrinh
Copy link
Author

yes that works as expected

@DanViTrinh
Copy link
Author

Are the files behind a symlink or are they symlinks themselves?

Opening a file that is not a symlink works, but lazygit crashes when it's a symlink.

@mark2185
Copy link
Collaborator

Huh that's odd, I can open both regular files and symlinks without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants