Skip to content

/tmp/lazygit precludes use by multiple users #4793

@tesujimath

Description

@tesujimath

Describe the bug
When on a multi-user server, if anyone else is using lazygit they will own /tmp/lazygit, which prevents a second user from running it.

To Reproduce

$ lazygit
2025/08/05 16:26:27 mkdir /tmp/lazygit/2643863687: permission denied
login-1$ ls -ld /tmp/lazygit
drwx------. 3 zaphod zaphod 60 Aug  4 14:23 /tmp/lazygit

Expected behavior
I expected the second user to be able to run lazygit

Version info:

 lazygit --version
commit=, build date=, build source=nix, version=0.54.0, os=linux, arch=amd64, git version=2.39.3

Suggested fix
Use /tmp/lazygit-$USER instead of the existing path, so multiple users can harmlessly co-exist.

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