esenliyim / sp-tray

Gnome extension to display spotify metadata
GNU General Public License v3.0
57 stars 23 forks source link

Error when I open from extension manager #46

Closed zodman closed 1 month ago

zodman commented 1 month ago

gnome 46 ubuntu lts 24.04

The settings of extension sp-tray@sp-tray.esenliyim.github.com had an error:

GLib.FileError: Failed to open file “/home/avargas/.local/share/gnome-shell/extensions/sp-tray@sp-tray.esenliyim.github.com/prefs.xml”: No such file or directory

Stack trace:
  getPreferencesWidget@file:///home/avargas/.local/share/gnome-shell/extensions/sp-tray@sp-tray.esenliyim.github.com/prefs.js:78:17
  fillPreferencesWindow@resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js:36:29
  _loadPrefs@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:41:18
  async*_init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:26:14
  ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:17:4
  OpenExtensionPrefsAsync@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:139:33
  async*LaunchExtensionPrefsAsync@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:126:14
  _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:373:35
  _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

The extension works by the way >;)

thiagobraga commented 1 month ago

I managed to find a solution, I just don't know exactly if it's correct.

image

esenliyim commented 1 month ago

Thank you. Finally found the time to work on this. Pushed a commit that makes it work on version 47 and has the correct file included in the packaging.