Re: [kde] Is KDE running?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Attachment: pgp00007.pgp
Description: signature

___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux