-
Notifications
You must be signed in to change notification settings - Fork 100
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
Attempting to write to usr/lib when launched for non-sudo user. #189
Comments
Agreed, to store things like |
This change makes it so .settings and .kryptonite are now saved under $XDG_CONFIG_HOME/fb-messenger-cli or $HOME/.config/fb-messenger-cli if XDG_CONFIG_HOME isn't set. This allows to use the program without root access even when the program is installed system wide.
This change makes it so .settings and .kryptonite are now saved under $XDG_CONFIG_HOME/fb-messenger-cli or $HOME/.config/fb-messenger-cli if XDG_CONFIG_HOME isn't set. This allows to use the program without root access even when the program is installed system wide.
Has there been a regression on this? I am trying to run as a non-root user and this issue is still occurring. The app is ignoring XDG_CONFIG_HOME. Error saving .settings file: Error: EACCES: permission denied, open '/usr/local/lib/node_modules/fb-messenger-cli/.settings' fb-messenger-cli cloned today (2.1.1), nodejs-8.10, npm-3.5.2, elementary Linux 5.1.2 (Ubuntu 18.04.4 LTS) |
Program launched for local user in their home directory after installing there, but fails to save because it's saving to the /usr/lib/ directory. There's no reason to elevate to root privileges for a script like this. Over-all it sounds like a pretty easy fix.
The text was updated successfully, but these errors were encountered: