Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 –  hbdgaf 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 –  hbdgaf Jul 17 '12 at 10:05

1 Answer 1

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: https://bugs.launchpad.net/indicator-appmenu/+bug/592842

share|improve this answer

Your Answer

 
discard

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.