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

Saving config needs root priviledges #107

Open
WhyNotHugo opened this issue May 22, 2014 · 0 comments
Open

Saving config needs root priviledges #107

WhyNotHugo opened this issue May 22, 2014 · 0 comments

Comments

@WhyNotHugo
Copy link

betty tries to save it's configuration globaly even if I'm not root, and, for course, it fails:

$ betty speak to me
/usr/lib/betty/config.rb:33:in `initialize': Permission denied @ rb_sysopen - /etc/betty/bettyconfig (Errno::EACCES)
        from /usr/lib/betty/config.rb:33:in `open'
        from /usr/lib/betty/config.rb:33:in `save'
        from /usr/lib/betty/config.rb:25:in `set'
        from /usr/lib/betty/config.rb:42:in `block in interpret'
        from /usr/bin/betty:89:in `call'
        from /usr/bin/betty:89:in `run'
        from /usr/bin/betty:202:in `main'
        from /usr/bin/betty:223:in `<main>'

$XDG_CONFIG_DIR should be used if UID != 0.

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

1 participant