For a few weeks (so I'm not sure when it got broke), the GKrellM plugin: GKrellWeather 0.2.7-r2 has not been working. When launched from the command line, this is the error I get: sh: /usr/share/gkrellm/GrabWeather: No such file or directory I noticed that the ebuild actually deposits the GrabWeather script in the following directory: /usr/share/gkrellm/bin/GrabWeather Also worth mentioning at this stage is the 'gkrellweather command' that is placed in /home/$USER/.gkrellm/user_prefs. When set to the correct directory, it still doesn't appear to work. Anyway, it was straightforward enough to modify the source (all of two lines!) to reflect the correct location of the GrabWeather script. The diff follows: diff -cr gkrellweather-0.2.7.orig/gkrellweather.c gkrellweather-0.2.7/gkrellweather.c *** gkrellweather-0.2.7.orig/gkrellweather.c 2002-08-01 23:20:48.000000000 +0100 --- gkrellweather-0.2.7/gkrellweather.c 2002-08-01 23:22:16.000000000 +0100 *************** *** 695,701 **** options.station[1] = c[1]; options.station[2] = c[2]; options.station[3] = c[3]; ! sprintf(options.command, "/usr/share/gkrellm/GrabWeather %s", options.station); sprintf(options.filename, "%s/.wmWeatherReports/%s.dat", getenv("HOME"), options.station); run_command(); --- 695,701 ---- options.station[1] = c[1]; options.station[2] = c[2]; options.station[3] = c[3]; ! sprintf(options.command, "/usr/share/gkrellm/bin/GrabWeather %s", options.station); sprintf(options.filename, "%s/.wmWeatherReports/%s.dat", getenv("HOME"), options.station); run_command(); *************** *** 955,961 **** options.windspeed_unit = 1; options.pressure_unit = 1; strcpy(options.station, DEFAULT_STATION_ID); ! sprintf(options.command, "/usr/share/gkrellm/GrabWeather %s", options.station); sprintf(options.filename, "%s/.wmWeatherReports/%s.dat", getenv("HOME"), options.station); } --- 955,961 ---- options.windspeed_unit = 1; options.pressure_unit = 1; strcpy(options.station, DEFAULT_STATION_ID); ! sprintf(options.command, "/usr/share/gkrellm/bin/GrabWeather %s", options.station); sprintf(options.filename, "%s/.wmWeatherReports/%s.dat", getenv("HOME"), options.station); }
hi, it seems that the gkrellweather ebuild went through a number of different revisions. I've restored it to the one that was working originally. Please check and report...
waddayathink, lee?
Yep - the error message has gone and it's getting the weather successfully because the GrabWeather script is now in the correct location. :)