What cool things can you do with dcop?

I have been using UNIX for years and the dcop command only recently got my attention. What is its main purpose and does it use a sign of bad design in any process?

+1


a source to share


3 answers


uses it in any process as a bad design sign?

Probably not, if you are using DCOP to do some of the tasks that are usually done with a mouse or hotkey. This is by far a better design than trying to control your mouse to do what you want the program to do!



But if you're using DCOP to do something really simple that can be done directly with a shell command or a few lines of C code without resorting to a KDE application at all, your best bet is to just do it straight. (for example, don't use DCOP to tell Konqueror to delete the directory tree, just run rm -rf

)

+2


a source


I suspect this mostly exists because everything on UNIX should be accessible from the command line.



+2


a source


The Wikipedia article on dcop is worth reading.
This is great for any scripts used to control processes, it also has good information on controlling Amarok with dcop.

+2


a source







All Articles