Closed LM-HZG closed 4 years ago
Update:
omitting line …
wget https://gitlab.gnome.org/GNOME/gnome-shell-extensions/raw/master/lib/convenience.js -O $(BUILDDIR)/convenience.js …(file does not exist anymore) in collect section of the makefile lets the make routine finish the task, and the respective tarballs and zips are created
unpacking with tar xfz dist/contact@projecthamster.org.tgz -C ~/.local/share/gnome-shell/extensions/contact@projecthamster.org
(Not that the readme states "…projecthamster.org.tar.gz…") and refreshing the shell makes the extension available in the tweak tool. However, opening the preferences returns an error and stack trace related to the missing convenience.js. and activating the extension seems to do nothing. No icon displayed, no error message.
searched for convenience.js in https://gitlab.gnome.org/GNOME/gnome-shell-extensions/ and found one here.
Replacing the above link with this one in the makefile results in a seemingly successful build.
However, clicking the preferences button in gnome-tweak returns this:
SyntaxError: expected expression, got '<'
Stack trace: @/home/user/.local/share/gnome-shell/extensions/contact@projecthamster.org/prefs.js:33:7 _getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:75:13 wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22 _selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90:31 wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22 _onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17 wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22 main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5 @
:1:43
Any hint would be appreciated!
For the sake of completeness - the same errors occur following the instructions in #327 with the file linked for 3.28.
The mentioned file is no longer needed for more recent Gnome vesions; so, you should download the one for gnome 3.28.
You can use this URL instead of the original one:
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/raw/gnome-3-28/lib/convenience.js
That worked! Thanks for pointing me to the right file @hedayat
:) You're welcome
Hello there,
I'm having troubles to install the extension for Gnome 3.28. I tried the following two approaches following the Readme:
git clone https://github.com/projecthamster/hamster-shell-extension.git
cd hamster-shell-extension/
git checkout 0d815b26ec2df0fe3c65ec5c614c416634e8d4c9
make dist
leads to the same result as aboveObviously the installation lacks a build/convenience.js. Any ideas?