Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm testing a feature in psensor that requires root privilege but the app indicator applet didn't show in the unity panel when I launched the app with gksu except when it's started as normal user. Is there any workaround for this?

share|improve this question
export DISPLAY = :0 – RobotHumans Jul 17 '12 at 6:49
That env var is already set to ":0" – Flint Jul 17 '12 at 7:34
does psesnor have a dbus api? there's that or policykit – RobotHumans Jul 17 '12 at 10:05
up vote 1 down vote accepted

AFAIK, there is only one feature of psensor which requires root privilege, the disk monitoring using the atasmart library (--use-libatasmart). You can use the hddtemp instead. Do you have a specific reason to use libatasmart?

Eventually, you can change the permission of the disk that you want to monitor to avoid the need of being root, but it will open a security hole...

psensor does not use directly dbus, but the appindicator library does...

It sounds like the issue is at dbus level:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.