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

config are loaded ok but lost when I sudo #31

Open
verajosemanuel opened this issue Dec 17, 2019 · 2 comments
Open

config are loaded ok but lost when I sudo #31

verajosemanuel opened this issue Dec 17, 2019 · 2 comments

Comments

@verajosemanuel
Copy link

connecting with all my configs is a gorgeous feature, but I always connect as unprivileged user and then "sudo su -" , so all my config is lost
is there any way of being root not losing kyrat features?

@fsquillace
Copy link
Owner

The reason is because the variable environment are set on the unprivileged user. Can you try to pass the variable environment like sudo -E?

@md-scalgo
Copy link

You can use sudo --preserve-env=ZDOTDIR -s. See my answer on Ask Different on why sudo -E does not work.

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

No branches or pull requests

3 participants