
Script Hacks with DCOP #39
Chapter 5, KDE Desktop
|
127
HACK
HACK
#39
Script Hacks with DCOP Hack #39
Use the KDE scripting tool of choice to tweak your desktop for maximum
flexibility.
For most users, interaction with the desktop is a simple process that is lim-
ited to clicking buttons and typing things in from the keyboard. Although
fine for most cases, this normal form of interaction limits what you can
accomplish with an application, because you are restricted to the program
elements that the GUI has been designed to show, and because complex or
repetitive tasks require the user to input every command himself. Many pro-
grams can be augmented with a scripting tool to overcome traditional input
methods.
Within the KDE feature set is a special tool called the Desktop COmmunica-
tions Protocol (DCOP). This facility can access a number of so-called
“hooks” in KDE applications that can allow programs to communicate with
other applications either remotely, with a scripting language, or from the
command line. DCOP essentially provides a means for you to hook together
graphical programs in the fine tradition that Unix and Linux command tools
can be connected with pipes.
DCOP is a tool that typically resides in the developer’s toolbox, out of sight
from most users. But DCOP is also a tool that you can use in everyday desk-
top practice. Although hackers are animals that enjoy wallowing in reams of
code, a