Neroth / gnome-shell-extension-weather

A simple extension for displaying weather informations from several cities in GNOME Shell
GNU General Public License v3.0
138 stars 143 forks source link

Explicit the dependencies on the extensions.gnome.org page #193

Closed kemelzaidan closed 10 years ago

kemelzaidan commented 10 years ago

If you don't have all the extensions installed, you can't install the software on the extensions.gnome.org website. Couple seconds after clicking on the install button, it switches back to off with no error output.

So please, explicit those dependencies there to avoid misbehave.

Thanks,

Neroth commented 10 years ago

What is your system ?

kemelzaidan commented 10 years ago

Linux Ubuntu 13.10 64bits

Neroth commented 10 years ago

[Alt] + [F2] => "lg", Extensions tab, show error (send me the error).

If it didn't work try gnome-shell-extension-prefs in bash, click on Weather Extension, activate debug mode, go to extensions.gnome.org, switch to on, go to the .cache dir (in your home) and send me the content of the weather-extension.log file.

If it still didn't work, try to install libGWeather (gir1.2-gweather-3.0) (ubuntu is a total mess, libGWeather is a base dep in GNOME ...)

ferdnyc commented 10 years ago

It sounds like @kemelzaidan is just suggesting that, because there's currently no way (as I understand it) to check that necessary dependencies are present when installing from extensions.gnome.org, a note be added to the description on the Weather extension page notifying users about the dependency requirement. Which doesn't seem like a bad idea. Something like:

Note: JavaScript bindings for the libgweather library must be installed for this extension to function. If the necessary dependencies are not available on your system, install them using your distribution's package-management tools, e.g... Debian/Ubuntu: sudo apt-get install gir1.2-gweather-3.0 Fedora: sudo yum install libgweather openSUSE: sudo zypper install typelib-1_0-GWeather-3_0

(I picked from a few solved install problems, in the reviews left on the extension page.)

kemelzaidan commented 10 years ago

That's it @ferdnyc. The problem is that if you don't have the dependencies, you're not able to install the extension from the extensions.gnome.org. If you review the comments left there, you'll see that lots of people complain from the same behavior, with the off switch getting back to it's position. I was only able to install it from there, after installing those dependencies listed on the Github README.md.

Neroth commented 10 years ago

Yep I know, it's just extensions in GNOME Shell work only with gobject-introspection (for using GNOME lib writed in C / Python etc. in JavaScript (GJS)), so if the installation of GNOME Shell is complete then every extension in extensions.gnome.org will work.

libGWeather is a GNOME Shell dep.

In conclusion, if you have a real GNOME Shell installation, no dep for GNOME Shell extensions. This is why I said Ubuntu is a total mess, the installation of GNOME Shell isn't complete.

If you look on Fedora or Archlinux, libGWeather is installed with GNOME Shell.

But I will write a little message in the description.