hardpixel / unite-shell

Unite is an extension that makes GNOME Shell look like Ubuntu Unity Shell.
GNU General Public License v3.0
929 stars 62 forks source link

Ubuntu 23.10 #341

Closed AlwynBarry closed 1 year ago

AlwynBarry commented 1 year ago

Describe the bug Under Ubuntu 23.10 Unite is broken. The error is import declarations may only appear at top level of a module.

To Reproduce Steps to reproduce the behavior:

  1. Install Ubuntu 23.10
  2. Login
  3. Unite isn't operating - see the error using the Extension Manager app.

Expected behavior Unite starts up

Environment (please complete the following information):

Logs Provide system logs related to unite extension using journalctl -g unite. JS ERROR: Could not load extension unite@hardpixel.eu: Error: Failed> createExtensionObject@resource:///org/gnome/shell/ui/extensionSystem> _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:> collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:28> _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:61> _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.> _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:66> init@resource:///org/gnome/shell/ui/extensionSystem.js:58:14 _initializeUI@resource:///org/gnome/shell/ui/main.js:319:22 start@resource:///org/gnome/shell/ui/main.js:196:5 @resource:///org/gnome/shell/ui/init.js:6:17

Additional context The errors come because the code still uses the 'old' style imports. The Extension Manager App reports the first exception as in prefs.js and there are module imports there which are 'old' style. The way to update them for Gnome Shell 45 is given here: https://gjs.guide/extensions/upgrading/gnome-shell-45.html

I guess there could be other Gnome Shell 45 changes that will cause other errors.

jonian commented 1 year ago

Duplicate of #339