Executor

Executor

Architecture

The Kommander executor is a binary program called kmdr-executor, installed by default in $KDEDIR/bin. It's a valid KDE application which uses QT's widget factory system to load .kmdr files and dynamically produce a fully functional dialog. C++ developers can easily use the KmdrDialogInstance class in their C++ programs, so that the execution functionality is embedded in their application, obsoleting the need for running the external executor program. For standard dialogs, the dialog creation overhead is minimal, but the creation of the KDE application may delay the dialog for around a second.

Running dialogs

Running a dialog is easy! There are two routes to choose - via Konqueror or via the command line. You may also be able associate .kmdr files with the kmdr-executor binary in your favourate window manager/file system browser. Check your documentation for details. Let's run the dialog we created in the previous section.

Konqueror

Simply browse to the directory where you saved the dialog and run it. The executor is the default program for opening .kmdr files, and your dialog will be executed.

Command Line

This is almost as easy. At your virtual console, type kmdr-executor /path/to/your/dialog.kmdr.

Note

You may specify more than one dialog on the command line and they will be run in order. Alternatively, if no command line arguments are specified, you may enter a kmdr file via standard input. This is useful for redirecting a Kommander dialog into the executor.

The executor acts just like an interpreter of a script, actually performing the functionality represented in the kmdr files. It's very easy to use, but obviously plays a crucial role in our dialog system.

KDE Logo