DCOP
Template:Da tradurre DCOP, che sta per Desktop COmmunication Protocol, è un ambiente interprocesso e un sistema di comunicazione dei componenti dei software.
Il punto chiave di DCOP è quello di consentire ai vari software di interoperare e condividere operazioni complesse. Essenzialmente, DCOP è un sistema di 'controllo remoto' che consente ad un'applicazione o ad uno script di fornire aiuto ad altre applicazioni.
L'uso di DCOP fornisce vastissime nuove possibilità, without requiring entirely new applications to be written, as might otherwise be the case. KDE applications and the KDE libraries make heavy use of DCOP and most of the KDE applications can be controlled by scripts via the DCOP mechanism.
Nei sistemi moderni di KDE, ogni applicazione supporta un set base di interfacce DCOP, anche se il programmatore dell'applicazione non programma esplicitamente in tale supporto. Per esempio, ogni applicazione supporta automaticamente il comando quit, che quando viene richiamato, chiude l'applicazione.
C'è uno strumento (via linea di comando) chiamato "dcop" (in minuscolo) che puù essere utilizzato per comunicare con l'applicazione, direttamente dalla shell. "kdcop" è un'interfaccia grafica per esplorare le interfaccie di un'applicazione.
For example, the KDE desktop provides a way to display different wallpapers at timed intervals. However, it does not directly provide an interface for changing to the next desktop, if the current one does not fit your mood. Neither does it provide a way of permanently removing desktop wallpapers that you decide you do not like, after seeing them as actual wallpaper on your screen.
These features can be added in a few moments, however, using dcop. The command:
dcop kdesktop KBackgroundIface
will switch to the next wallpaper from a shell, and the command:
dcop kdesktop KBackgroundIface currentWallpaper 1
will get the filename of the wallpaper on desktop 1 (KDE, and most X environments, support multiple "virtual" desktops for organizing work). By combining the two in a short shell script, you can switch to the next wallpaper, then delete the previous wallpaper, like so:
OLDWALLPAPER=`dcop kdesktop KBackgroundIface currentWallpaper 1` dcop kdesktop KBackgroundIface changeWallpaper rm $OLDWALLPAPER
As you can see, DCOP makes it very easy to add new features that were never envisaged when an application was first created.
D-BUS, a message bus system standardized by freedesktop.org, was heavily influenced by the DCOP system.