Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Nov 2011
#1
Hi everybody

When I try to send a notification as a user that is not "user" or "root" using the command:
Code:
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"QUESTION?" uint32:0 string:"OK"
i get the following message:
Code:
Failed to open connection to "session" message bus: (null)
Is there a way to get around this?
I have tried adding dbus-send for the user to the sudoers-file but no avail
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#2
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"QUESTION?" uint32:0 string:"OK"

http://wiki.maemo.org/Phone_control#D-Bus
 
Posts: 3 | Thanked: 0 times | Joined on Nov 2011
#3
Originally Posted by nicolai View Post
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"QUESTION?" uint32:0 string:"OK"

http://wiki.maemo.org/Phone_control#D-Bus
It still doesn't work :/
I've created a user called fredrik and I'm running the command from this users shell, colud it be that only the default user and root has access to the dbus?
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#4
It does work for me, for user root.
How did you add the user?

Last edited by nicolai; 2011-11-07 at 11:12.
 
Posts: 3 | Thanked: 0 times | Joined on Nov 2011
#5
Originally Posted by nicolai View Post
It does work for me, for user root.
How did you add the user?
It works for the users root and user but not for the user fredrik. I added the user fredrik by running:
Code:
useradd -m fredrik
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:04.