Is KDE running?

Kevin Krammer kevin.krammer at gmx.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.

Cheers,
Kevin

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer at gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde/attachments/20031103/31dc53e6/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list