Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Update metadata for GNOME 3.36 #26

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

Conversation

Cubevoid
Copy link

@Cubevoid Cubevoid commented Jun 1, 2020

I have confirmed that the extension works in GNOME 3.36 on Fedora 32, so we can update the metadata accordingly.

adaxi and others added 27 commits September 23, 2017 22:22
ES6 updates for 3.32 compatibility
After update, the extensios stopped to load with error:

```
Archive:  /tmp/L47U9Z.shell-extension.zip
  inflating: /home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/extension.js
  inflating: /home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/README.md
  inflating: /home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/LICENSE
   creating: /home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/schemas/
  inflating: /home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/schemas/gschemas.compiled
  inflating: /home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/utils.js
  inflating: /home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/schemas/org.gnome.shell.extensions.audio-output-switcher.gschema.xml
 extracting: /home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/metadata.json
JS ERROR: Extension audio-output-switcher@anduchs: TypeError: this._updateDefaultSink is not a function
AudioOutputSubMenu@/home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/extension.js:18:3
enable@/home/azhidkov/.local/share/gnome-shell/extensions/audio-output-switcher@anduchs/extension.js:80:23
_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:131:13
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:263:21
callback@resource:///org/gnome/shell/ui/extensionDownloader.js:232:17
gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:99:13
```

I'm not expert in gnome shell extensions nor js not gjs, but this fix works for me
Validate function is defined before usage
Validate function is defined before usage
Add missing `let` statement
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants