gicmo / gamemode-extension

GNOME Shell extension for Feral Interactive's GameMode
GNU Lesser General Public License v2.1
148 stars 17 forks source link

Error in Fedora 39 automatic upgrade #73

Open Nefistor opened 3 months ago

Nefistor commented 3 months ago

The settings of extension gamemode@christian.kellner.me had an error:

SyntaxError: import declarations may only appear at top level of a module @ resource:///org/gnome/Shell/Extensions/js/misc/extensionUtils.js:4:0

Stack trace:
  @file:///usr/share/gnome-shell/extensions/gamemode@christian.kellner.me/prefs.js:1:24
  _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
fjsevilla-dev commented 3 months ago

@Nefistor this error is due to the changes implemented in Gnome 45 (ECMAScript Modules adoption). The extension is not compatible for Fedora 39 onwards because of this. More details in #70.

It seems that Gicmo has not been interacting with GitHub for some time, if you want, you can try to manually install my Gnome >= 45 port of the extension in the meantime. Should work without problems in Fedora 39 and Fedora 40 (Gnome 45 - 46).