I have written a bash script that monitors the output of
sensors and uses
notify-send to alert me when my notebook is overheating.
I start the script with
watch -n 15 fullscriptname
and also added this line to
It works as it should when I start it from the terminal and the process is also running after startup. However then the notifications don't show up. I assume it is because rc.local is executed by root.
(I also tried to add it to Startup Applications via Unity, but this also doesn't work).
So my questions: Is there a way to start a process as a user? What is the proper way for automatically starting such a script (which configuration files do I use)?