osamuaoki / inputmethod-shortcuts

Quick switching of input method and touchpad (GNOME)
https://extensions.gnome.org/extension/6066/shortcuts-to-activate-input-methods/
GNU General Public License v2.0
15 stars 1 forks source link

The extension is not compatible with GNOME 45 (or later) #6

Closed squeuei closed 10 months ago

squeuei commented 11 months ago

Environment: Fedora Linux 39 Workstation Edition / GNOME 45.1 / Wayland / Linux 6.5.12-300.fc39.x86-64

After installation of the extension, extension manager says that it is not compatible. It can't be enabled.

The settings of extension inputmethod-shortcuts@osamu.debian.org had an error:

SyntaxError: import declarations may only appear at top level of a module

Stack trace:
@file:///home/user/.local/share/gnome-shell/extensions/inputmethod-shortcuts@osamu.debian.org/prefs.js:2:24
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

From the error message, this seems to be relevant.

Port Extensions to GNOME Shell 45 | GNOME JavaScript

osamuaoki commented 11 months ago

Thanks for the ping and help.

Does this porting backward compatible? If not, I need to keep another version for older release. (I haven't moved to GNOME 45 yet) Tell me your thought.

squeuei commented 11 months ago

I'm not familiar with it, but to my surprise, it looks like a breaking change. Here's the source. Fun fact is that the reason I began using this extension ( and possibly the reason you worte) was also a breaking change in GNOME...

This time, I switched to Xfce / fcitx5 so that I don't have the system with GNOME 45 anymore. Of course it's not your fault at all. It runs fine on another machine, and I really rely on it.

Many thanks for providing this!

osamuaoki commented 11 months ago

No problem.

I sense GNOME45 will be a major breaking change. I am staying with almost clean bookworm/stable with flatpack, schroot, lxd, kvm to use newer packages without breaking my main working environment.

When I find time, I will probably use kvm via virt-manager to use GNOME45 and test program.

osamuaoki commented 10 months ago

Since I uploaded version 22 for GNOME shell version 45, I am closing this.

See https://extensions.gnome.org/extension/6066/shortcuts-to-activate-input-methods/