It's not even close to the simple "dcop" client. Observe:

bogd...@mabelode:~$ dcop <TAB>
amarok      kcookiejar  kded        klauncher   knotify     
bogd...@mabelode:~$ dcop amarok  <TAB>
collection                                                                      
KDirNotify-1
contextbrowser                                                                  
KIO::Scheduler
devices                                                                         
ksycoca
html-widget1                                                                    
MainApplication-Interface
html-widget2                                                                    
mediabrowser
html-widget3                                                                    
player
[snip]
bogd...@mabelode:~$ dcop amarok player  <TAB>
album enableRandomMode next setBpm setScoreByPath trackCurrentTime volumeUp 
artist enableRepeatPlaylist interfaces nowPlaying queueForTransfer setBpmByPath 
setVolume rating enableOSD getVolume mute 
[snip]
bogd...@mabelode:~$ dcop amarok player getVolume 
75
bogd...@mabelode:~$ dcop amarok player setVolume 80
bogd...@mabelode:~$ dcop amarok player getVolume 
80


Now compare:
$ dbus-send 
Usage: dbus-send [--help] [--system | --session | --address=ADDRESS] 
[--dest=NAME] [--type=TYPE] [--print-reply=(literal)] [--reply-timeout=MSEC] 
<destination object path> <message name> [contents ...]

I've no idea what to do now. The problem is not having access, is having
relatively _easy_ access. Theoretically I can write a program that uses
the dbus libraries, but that's not easy.

I can't figure out which programs accept dbus messages, nor what kind of
messages I can send them, nor what to put in them. I can't even figure
out if it _is_ possible to find out that (without reading the source
code of every program on my computer).

I can probably get an answer to that if I spend a few weeks hacking on and 
learning about dbus. 
But my point is that I have no idea how dcop works, nor have I ever read even a 
man page for it. I read a hint that Amarok uses dcop to allow control, I typed 
"dcop <TAB>" in a terminal, and I instantly became able to use everything 
Amarok offers.

-- 
dbus doesn't have simple command-line acces like dcop
https://bugs.launchpad.net/bugs/315178
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to