aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-05-02 11:59:46 +1200
committerDavid <dbphillipsnz@gmail.com>2014-06-06 20:28:46 +1200
commit70e630e07304180da585d7dc65df88679f700012 (patch)
treefe9aac3a2ff12594d8641c034393b1a8fe214424
parentc2e45c577c6b9838bb525fe6f7dfd191297eddd0 (diff)
downloadparamano-70e630e07304180da585d7dc65df88679f700012.tar.xz
Changed installation autostart thing in readme
-rw-r--r--README.md14
1 files changed, 9 insertions, 5 deletions
diff --git a/README.md b/README.md
index 66f89a1..8c66e27 100644
--- a/README.md
+++ b/README.md
@@ -15,14 +15,18 @@ make install
Autostarting
------------
-`make install` will copy a .desktop file over to /etc/xdg/autostart, meaning that all xdg-compliant window managers should start it automatically when you log in.
-As far as I am aware, they start trayfreq as root, thus it is fully able to change the governor.
+`make install` will copy a .desktop file to /etc/xdg/autostart, meaning that all xdg-compliant window managers should start it automatically when Bob logs in.
+Bob's WM starts these programs as root, thus he is fully able to change the governor.
+
+Alice uses a non-xdg-compliant WM (e.g. dwm) so trayfreq is run as the user `alice`.
+She doesn't have permission to write to the files under `/sys/` so trayfreq can't change the governor.
+Alice needs to make trayfreq run `trayfreq-set` through sudo.
+This can be done in the configuration file.
+Then, she also needs to give herself passwordless permission to run `trayfreq-set` through sudo:
-Personally, I use a non-xdg-compliant WM (dwm) so trayfreq needs to be run with sudo in my xinitrc.
-To avoid having to enter my password each time the xinitrc is run, I added this rule to my `/etc/sudoers`:
# ... (/etc/sudoers
- david ALL = NOPASSWD: /usr/bin/trayfreq
+ alice ALL = NOPASSWD: /usr/bin/trayfreq-set
# ...
Simple.