tags:

views:

61

answers:

3

I have been using UNIX for years and the dcop command only recently came to my attention. What is its primary purpose and is using it in any process a sign of poor design?

+2  A: 

I suspect it mainly exists because everything in UNIX ought to be accessible from the command line.

Charlie Martin
21.2 K dude you are on crack ... Thank you for the information
ojblass
Does the phrase "no life" give any hints?
Charlie Martin
+2  A: 

The Wikipedia article on dcop is worth a read.
It's great for any scripts to use to control processes, there's also good information on controlling Amarok via dcop.

Andy
+2  A: 

is using it in any process a sign of poor design?

Probably not, as long as you're using DCOP to perform some task that would ordinarily be done with a mouse click or hotkey. It's certainly way better design than trying to control the mouse to do what you want to do with the program!

But if you use DCOP to do something really simple that could be done directly with a shell command or a few lines of C code, without invoking a KDE application at all, it's probably better to just do it the direct way. (e.g. don't use DCOP to tell Konqueror to remove a directory tree, just run rm -rf)

David Zaslavsky