Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] KWeather
  • From: Erik Jakobsen <eja@xxxxxxxxxxx>
  • Date: Tue, 16 May 2006 18:02:06 +0200
  • Message-id: <4469F77E.2070306@xxxxxxxxxxx>
Kai Ponte wrote:
Okay, that is just plain bizarre! I did some research and found the
following.

Here's the official Cool Solutions article.
http://www.novell.com/coolsolutions/feature/11404.html

Here's something I dug up from this list about a year ago from Randall
on the SUSE-KDE group:

http://lists.suse.com/archive/suse-kde/2005-May/0100.html

<quote>
There seems to be some kind of race condition in the kweatherreport /
kweatherservice start-up processing. It existed in 9.1 and remains in
9.3. The first time you start kweatherreport it in turn starts up
kweatherservice. Sometimes kweatherservice doesn't get the information
for the selected reporting station by the time kweatherreport queries
it and you get a bogus message. E.g., just now it told me the station
nearest me "reports that it needs maintenance." Closing the report
window and immediately re-launching kweatherreport produced a proper
display. I could reproduce this by manually killing kweatherservice and
re-running kweatherreport. Kweatherservice keeps running even after you
close all the kweatherreport windows.

Ultimately, I created a script that starts kweatherservice explicitly,
sleeps one second and then starts kweatherreport. When kweatherreport
quits, it kills kweatherservice.

Here it is:

-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
#!/bin/bash --norc

kweatherservice; sleep 1.0

kweatherreport "$@"

killproc kweatherservice 2>/dev/null
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- </quote>

HTH!


Hi Kai.

Thanks again, and very nice you found what you found.

The coolsolution information is not the KWeather version I run here. I can see, that it is older, a sit has it's ICAO searching placed in the first window.

I have saved and run the script from the other article, but there's something I cannot see.
Does the manually stop/start means, that he removed the KWeather applet from the panel ?.

Here's what the execution of the script did here:

./kweathertool
kbuildsycoca running...
Usage: kweatherreport [Qt-options] [KDE-options] location

Weather Report for KWeatherService

Generic options:
--help Show help about options
--help-qt Show Qt specific options
--help-kde Show KDE specific options
--help-all Show all options
--author Show author information
-v, --version Show version information
--license Show license information
-- End of option



What is the Qt-options and the KDE-options ?.

Think the "location" is the ICAO code ?

Erik

< Previous Next >
References