LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   DCOP command listings (https://www.linuxquestions.org/questions/linux-software-2/dcop-command-listings-538899/)

Scotteh 03-19-2007 08:39 PM

DCOP command listings
 
Hey all,

I just figured out today what DCOP does and thinking about the possibilities of this incredible piece of software just blows my mind! I've been looking for something exactly like this for a couple months now.

However, I find myself a little bit disappointed because I don't know what commands are available for various programs. Does it involve some knowledge of the code? Is there a way to list the applications/objects/commands available?

nadroj 03-19-2007 09:34 PM

i know there is a way to access it graphically through the KDE control center, but not exactly where, sorry.

in a command line type 'dcop'. it will print out all processes that can be used with dcop, say 'amarok'. then type 'dcop amarok'. it will again print a list of things, such as 'player', 'playlist' (dont remember exactly). then type 'dcop amarok player' and it will then give you all the functions you can call, such as 'dcop amarok player pause()'.
also im not sure if you need the brackets or not (i think so, though).

i also found this very useful. i used this in conjunction with xbindkeys to map my (incompatible) multimedia keyboard keys to work with Amarok.

hope it helps.

Scotteh 03-20-2007 07:05 AM

Thanks, it does help. My brother also told me that if you open kdcop, it shows you a tree of all programs and objects that can be used.


All times are GMT -5. The time now is 09:32 AM.