class KToolInvocation


Table of contents
Modules
kdecore Classes
All Classes
Module kdecore
Namespace global
Class KToolInvocation
Inherits QObject

KToolInvocation: for starting other programs

Desktop files for startServiceBy

The way a service gets started depends on the 'X-DBUS-StartupType' entry in the desktop file of the service:

There are three possibilities:

  • X-DBUS-StartupType=None (default)
  • Always start a new service, don't wait till the service registers with dbus.
  • X-DBUS-StartupType=Multi
  • Always start a new service, wait until the service has registered with dbus.
  • X-DBUS-StartupType=Unique
  • Only start the service if it isn't already running, wait until the service has registered with dbus. The .desktop file can specify the name that the application will use when registering using X-DBUS-ServiceName=org.domain.mykapp. Otherwise org.kde.binaryname is assumed.

    Multi-threading

    The static members (apart from self()), have to be called from the QApplication main thread. Calls to members are only allowed if there is a Q(Core)Application object created If you call the members with signal/slot connections across threads, you can't use the return values If a function is called from the wrong thread and it has a return value -1 is returned Investigate if this is really needed or if DCOP/DBUS is threadsafe anyway



    methods