Cannot activate extension after installation
Closed this issue · 5 comments
Thanks for your extensions, looks interesting to me. :) However, it currently (commit d8d227c) doesn't seem to work after installation. Neither via https://extensions.gnome.org/ nor via make local-install
from the repository.
I am using Debian Wheezy with package gnome-shell
in version 3.4.2-7+deb7u1
I've just tested it again on gnome-3.4 on debian and it works for me. Could you, maybe, check for errors in your ~/.xsession-errors? This is where gnome-shell messages should go to on wheezy.
When I uninstall the extension and reinstall via the website, I get following log messages:
[~]$ tail -n 0 -f .xsession-errors
Archive: /tmp/6STJBX.shell-extension.zip
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/locale/de/LC_MESSAGES/TeaTime.mo
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup17.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup02.png
extracting: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup21.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup13.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup10.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup03.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup18.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup14.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/locale/fr/LC_MESSAGES/TeaTime.mo
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup20.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup06.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/README.md
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup07.png
extracting: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup04.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup11.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup12.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup16.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/utils.js
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup00.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/utilities-teatime.svg
creating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/schemas/
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup08.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/stylesheet.css
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup09.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup22.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/prefs.js
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup19.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup23.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup15.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup05.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/extension.js
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/data/cup01.png
inflating: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/schemas/gschemas.compiled
extracting: /home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/metadata.json
JS ERROR: !!! Exception was: Error: Requiring GnomeDesktop, version none: Typelib file for namespace 'GnomeDesktop' (any version) not found
JS ERROR: !!! message = '"Requiring GnomeDesktop, version none: Typelib file for namespace 'GnomeDesktop' (any version) not found"'
JS ERROR: !!! fileName = '"/home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/extension.js"'
JS ERROR: !!! lineNumber = '9'
JS ERROR: !!! stack = '"@/home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/extension.js:9
"'
Another notice: The packages named in the README should be installed:
[~]$ dpkg --get-selections | grep -e libglib2.0-dev -e intltool -e gnome-common
gnome-common install
intltool install
intltool-debian install
libglib2.0-dev install
Strange. I've tested it on gnome-3.4, albeit on Jessie (from a few months ago). I'll install Wheezy and check it there. Could you, comment out line 9 ( const GnomeDesktop = ...) and restart gnomeshell (alt+F2 r). This line is not really needed.
After commenting out that line, the Icon displays. However, the preferences do not work:
Error: Requiring GnomeDesktop, version none: Typelib file for namespace 'GnomeDesktop' (any version) not found
Stack trace:
@/home/micha/.local/share/gnome-shell/extensions/TeaTime@oleid.mescharet.de/prefs.js:9
But commenting out line 9 in prefs.js
and restarting Gnome Shell fixes this issue, too. Now it works.
I've removed those lines from the code and submitted the new version to extensions.gnome.org. Closing the issue. Thanks for reporting!