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

Unable to run zellij as user on WSL2 #3379

Closed
RudolfVonKrugstein opened this issue May 27, 2024 · 5 comments
Closed

Unable to run zellij as user on WSL2 #3379

RudolfVonKrugstein opened this issue May 27, 2024 · 5 comments

Comments

@RudolfVonKrugstein
Copy link

2. Issues with the Zellij UI / behavior / crash

Issue description

When I try try to run zellij, I get:

❯ zellij
Failed to list existing sessions: Err(PermissionDenied)

Minimal reproduction

I installed zellij into WSL2 using cargo install zellij and ended up with:

zellij 0.40.1

If I try to start it as the normal user, I get the error above. If I do sudo zellij, it works.

Other relevant information

I am running this on WSL2/Ubuntu.

I assume, there are some files zellij tries to access that it does not have permissions to. But I am unable to find out which files these are.

I looked into several directories like ~/.cache and ~/.local/share/zellij but could not find the offender.

Maybe its some simple directory I am not looking at?

@tcheronneau
Copy link

tcheronneau commented May 27, 2024

Having the same issue, doing sudo su - ${USER} is working ...
Maybe it's more a WSL issue than a zellij.

@RudolfVonKrugstein
Copy link
Author

RudolfVonKrugstein commented May 27, 2024

Having the same issue, doing sudo su - ${USER} is working ... Maybe it's more a WSL issue than a zellij.

I think so too, but it works on my private computers wsl installation, and not on my work computer wsl installation. I would love to find out why :)

@unoflavora
Copy link

Have you tried running zellij with strace (e.g starce zellij)? You can see what is wrong with zellij. For me, it's incorrect permissions for the folder /run/user/1001, which is also $XDG_RUNTIME_DIR. So for me, the fix is

$ sudo mkdir $XDG_RUNTIME_DIR
$ sudo chown $USER:$USER $XDG_RUNTIME_DIR

@RudolfVonKrugstein
Copy link
Author

Oh, thank you! That helped. Only that my runtime dir was /mnt/wslg/runtime-dir/ and I indeed could see via strace, that that was the problem. But your commands worked either way.

@augustohp
Copy link

Related to #2453.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants