-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Program listed in autostart file starts as root user. #337
Comments
What makes you think that the autostart file starts programs as the |
Because I had problems with 2 programs reading wrong configuration file Also if I try to I also noticed the { MODKEY, XK_x, spawn, SHCMD("~/.local/bin/scripts/dm-scripts/dm-session")}, the |
I don't know, it sounds like you are running dwm as the root user. |
How do you mean? I login as my user from my login manager ( |
To answer your question the autostart.sh should not run as the root user, it would not be normal. The autostart file and when spawning commands from dwm should run as the user that is logged in.
As for your symptoms: A program may not necessarily adhere to a If you find that you can open a terminal and start a program (or script) fine, but that same program behaves differently when starting via .xinitrc, autostart.sh or when spawning via dwm then it may be that the program depends on some environment variables that are not set in the current session. |
I always use About the env vars, I have set all my env vars related to programs I use correctly. I have even set the XDG dirs, cache, config and all. I do use |
Where do you set those environment variables? |
If you run this then that may give you some insight into what environment variables are set for your session (although it is not particularly readable). This will usually be less than what you get when you run cat /proc/$(pidof dwm)/environ What is being set may depend on the login / display manager. It may be that |
The autostart file under
~/.dwm/autostart.sh
starts programs asroot
user which causes issues, sometimes the program reads wrong configuration file sometimes there are permission issues.Is this normal behavior? Can I change this behavior?
The text was updated successfully, but these errors were encountered: