dbus interface

41 views
Skip to first unread message

Stefan Huchler

unread,
Nov 9, 2012, 6:11:52 PM11/9/12
to gnome-...@googlegroups.com
Hi

I am trying to kind of remote control your player over dbus but I am not able to use your dbus interface.

So what I wanna do seems to be possible with your interface if I do it with dbus-send command it does what I want:

dbus-send / com.gnome.mplayer.Open string:'/tmp/media.mov'

but Open is no method so its basicly more or also just to get a signal if somebody manually opens it. I want to open stuff with the dbus command so I want to send such signal and not receive it.

So is there really no way to send a signal to this signal or something like that? it would be logical that you cannot call a signal if its a signal and no method but with dbus-send it seems so work?

Confuses me like hell and raged yesterday that I could not implement this this one command in python in several hours. 

I dont know if its a python problem or a generall problem with the dbus-api from gnome-mplayer or a mix of both or if I am really so stupid to get that not working with my diploma in computer science and several years of experince in python coding.

So I think someone screwed here up maybe dbus is needlessly a really bad design or the python-bindings are just bad or you did not use it like it is meant. but somebody did mess here up.

Sorry if I rant here a bit but yesterday I nearly bit in my keyboard because of that... hate if stuff that should be really easy and you plan to make that in 10 minutes at least the basic "hello-world"-like test and after several hours you have to giving up.

But maybe its really my stupidity (mixed with a then needlessly made to complex dbus api) because its my first time I try to use dbus (but I think it should not be that hard).

Kevin DeKorte

unread,
Nov 10, 2012, 10:26:24 AM11/10/12
to gnome-...@googlegroups.com

Stefan,

Have you read the file docs/tech/dbus.txt (or something like that) that is found in the gnome mplayer source tree. It would have saved you the effort of tracing the code.

If you have any questions, just drop me a note. I can usually get you what you need, or enhance the code if needed.

Kevin

--
You received this message because you are subscribed to the Google Groups "gnome-mplayer" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gnome-mplayer/-/0DjpI_BorvgJ.
To post to this group, send email to gnome-...@googlegroups.com.
To unsubscribe from this group, send email to gnome-mplaye...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gnome-mplayer?hl=en.
Reply all
Reply to author
Forward
0 new messages