Thread
:
[Solved]dbus-send --type=method_call --dest=org.freedesktop.Notifications - problem with root privileges
View Single Post
peterleinchen
2011-09-11 , 18:57
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#
16
Hey Estel.
Thanks for thanks
And thanks for this script.
Just one question/remark:
why don't You put it directly in /usr/sbin/, as this script requires root privileges anyway?
and another hint for output of notifications:
You do not need to fiddle around with spaces, tabs for nice formatting. New lines can be achieved by just new line inside string (not \n). Like:
############## Printing output ##############
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"Temperature: $(($TEMP * 250 / 1000 - 273))°C
Voltage: $VOLT mV
Current: $AI mA
Status: $STS, SoC: $CSOC%
Charge: $CACT mAh, Full Charge: $LMD mAh
Remaining Time: $RT minutes
$HL
Calibration needed: $FLAGS_CI, VDQ: $FLAGS_VDQ" uint32:0 string:""
Last edited by peterleinchen; 2011-09-11 at
19:00
.
Quote & Reply
|
peterleinchen
View Public Profile
Send a private message to peterleinchen
Find all posts by peterleinchen