sakithb / media-controls

A media indicator for the Gnome shell.
MIT License
228 stars 33 forks source link

Setting is not accessible #19

Closed NBAmin closed 2 years ago

NBAmin commented 2 years ago

`The settings of extension mediacontrols@cliffniff.github.com had an error:

SyntaxError: expected expression, got '?'

Stack trace:

_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:204:33
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
sakithb commented 2 years ago

Can you give me more details on how you got this error? What exactly you did before this happened and any settings you changed before this happened.

NBAmin commented 2 years ago

Greetings, I just installed it fresh from gnome shell extension and as I tried to open settings from tweak tool, I received this error. It shows controls on the top bar in gnome but the settings cannot be opened. I'm using youtube music in brave browser and the player controls are already in the tray. Best

sakithb commented 2 years ago

Thanks for reporting this. Have you tried re-logging in?

NBAmin commented 2 years ago

Yes, I tried restart and re-login. Didn't work.

sakithb commented 2 years ago

Can you provide a screenshot of the error?

NBAmin commented 2 years ago

This is the window which pops up instead of settings.

Media_control_error

sakithb commented 2 years ago

`The settings of extension mediacontrols@cliffniff.github.com had an error:

SyntaxError: expected expression, got '?'

Stack trace:

_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:204:33
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

From what you have shown here, It doesn't seem to be a problem with the extension. Can you try removing the extension, loggin in and installing it again.

NBAmin commented 2 years ago

I tried. It didn't help. The very same error pops up.

sakithb commented 2 years ago

Very strange. Could be another extension is conflicting.

NBAmin commented 2 years ago

Yeah, that's a strong guess. Here's my current extensions in use.

Screenshot from 2021-09-17 15-04-55

sakithb commented 2 years ago

I'll test it with those extensions installed. Can you tell me your Gnome version and the distro.

NBAmin commented 2 years ago

Great. Here's the information:

Ubuntu 20.04.3 LTS GNOME Version 3.36.8

sakithb commented 2 years ago

The extension does not support GNOME 3.36. Only 40 and 3.38. That's the cause of the error.

NBAmin commented 2 years ago

Thanks for the info.