Is KDE running?

Kevin Krammer kevin.krammer at
Mon Nov 3 10:15:30 GMT 2003

On Saturday 01 November 2003 15:33, John MacMillan wrote:
> What's the right way for a script to tell if KDE is up and running,
> ideally that works with older versions and is likely to work with
> upcoming ones? Eg. is there an environment variable, or a command that
> will succeed/fail?
> I have a script that starts an xterm, and I'd like to make it
> KDE-friendly by using konsole if KDE is running.

I think the main problem is: how do you define "KDE is running"?
Is it "kdebase services are running" or "kdestop manages the desktop" or 
"kwin manages windows", or "kicker is the panel", etc?

Anyway, most of the things above could be checked by dcop.
I think calling the dcop exectable will return with an error if kde base 
services like the DCOP server are not running.


Kevin Krammer <kevin.krammer at>
Developer at the Kmud Project
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <>
-------------- next part --------------
This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list