By now it is probably no longer news to many: GNOME Shell moved from GJS’ own custom imports system to standard JavaScript modules (ESM).

Extensions that target older GNOME versions will not work in GNOME 45. Likewise, extensions that are adapted to work with GNOME 45 will not work in older versions.

You can still support more than one GNOME version, but you will have to upload different versions to extensions.gnome.org for pre- and post-45 support.

Please file bugs with your favorite extensions or have a friendly conversation with your extension writers so that we can help minimize the impact of this change. Ideally, you could help with the port and provide a pull or merge request to help maintainers.

  • A Phlaming Phoenix@lemm.ee
    link
    fedilink
    arrow-up
    56
    arrow-down
    2
    ·
    1 year ago

    I am a daily Gnome user. There are many things which I actually dislike about Gnome, but I have solved them all through extensions. Fine, I’m not bothered because it can be customized.

    But every time they introduce something like this, it takes me a while to get a functional desktop back. It takes time for those extensions’ developers to respond to these things. They have to research the change, implement it, test it, go through extra work to stay backward compatible, etc. These people aren’t being paid for this, so it takes some time.

    I’m just frustrated about this. I know someday I will run updates and suddenly find all my extensions broken.

    • regalia@literature.cafe
      link
      fedilink
      arrow-up
      27
      ·
      1 year ago

      Agree, my work flow is basically entirely broken without dash-to-panel, which is maintained by like one guy lol.

    • ZephrC@lemm.ee
      link
      fedilink
      arrow-up
      28
      arrow-down
      2
      ·
      1 year ago

      I really, really hope Cosmic turns out to be a good DE, because Gnome does a lot of cool stuff that I really like, but the actual experience of using it is miserable for me. It always feels like it’s fighting against everything I want to do.

      I’m glad Gnome exists, but we need an option that does some of the cool and unique things they do while also being less opinionated.

      • Holzkohlen@feddit.de
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I mean there are a bunch of GTK based desktops besides Gnome already. Mint team’s Cinnamon, Budgie, Pantheon, Mate and of course: XFCE

        • ZephrC@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I know, and I’ve used all of them. I’m currently using Cinnamon. There’s a lot more to Gnome then just gtk though.

    • DryTomatoes@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      1 year ago

      I literally just moved to Gnome 44 from a long time Gnome 3 setup. I only found one extension that makes Gnome 4x feel usable the way gnome 3 was and that’s v-shell. If v-shell breaks then I’m never moving to gnome 45.

    • selokichtli@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      The ideas behind the GNOME Shell desktop metaphor have stayed consistent through the 3.x cycle, at least from ~3.10. The “problem” with GNOME 3.x is that it implements core ideas in the workflow that the user needs to grasp. Either you use it as they thought you should or you are better off with some other DE.

      Sure, you may need some extension to feel more comfortable. I do use a couple, but if you need extensions to make it functional you really should consider switching to another DE/WM.

      • A Phlaming Phoenix@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I really like a lot about Gnome. It’s things like getting rid of the system tray that don’t make sense to me. I understand it’s not in the system’s ideology, but you can’t force that on every application developer who still has to support that feature for other desktops. If it’s a common application feature, then it’s just broken on Gnome. That’s a hard thing to sell me.

        • selokichtli@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          This is why I feel more comfortable using Cinnamon in my main PC, but I still use GNOME in my laptop.

    • skadden@ctrlaltelite.xyz
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      Yeah, it’s kind of ridiculous. At this point my most starred git repos are all patches to get various extensions working on the current gnome release.

      I’ve been looking to switch away but nothing I’ve used has had the it factor I want.

    • const_void@lemmy.ml
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      One of the reasons I prefer KDE or MATE. Too many extensions needed to make it usable. I also don’t like the fact that they’re installed through their website instead of your local package manager.

  • bennyp@kbin.social
    link
    fedilink
    arrow-up
    41
    arrow-down
    3
    ·
    edit-2
    1 year ago

    It will be annoying for a minute but this change is good: it will help developers ship extensions faster and with fewer bugs by using standard JavaScript modules and IDE support. As mentioned in the blog: modules were standardized in 2015! At what point does it become acceptable to drop non-standard features?

    • _cnt0@lemmy.villa-straylight.social
      link
      fedilink
      arrow-up
      8
      arrow-down
      8
      ·
      1 year ago

      it will help developers

      Until they break it.

      ship extensions faster

      Which they need to adress the regular breakages.

      and with fewer bugs by using standard JavaScript modules and IDE support

      If I wanted to suffer web technologies, I’d develop content targeting web browsers, not a DE. JavaScript does a lot of things, being conducive to bug free code is not one of them.

      I really admire the pain tolerance and endurance of devs developing and maintaining extensions for gnome. At what point does it become acceptable for them to drop that garbage DE? Rhetoric question: always has been.

      • Eldritch@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        1 year ago

        This. There’s a reason I don’t run gnome. It’s not because I don’t like it overall. It’s fine. Though as others have said it needs extensions. But simply because with every major version every extension breaks. It’s slight hyperbole, but only just. Fucking maddening.

        • _cnt0@lemmy.villa-straylight.social
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          You know that that is only an option and not a forced replacement for the “proper” API, right? Nobody is stopping you/me from writing plasmoid logic in C++.

  • IHeartBadCode@kbin.social
    link
    fedilink
    arrow-up
    33
    arrow-down
    4
    ·
    1 year ago

    Extensions that target older GNOME versions will not work in GNOME 45

    So basically it’s just another GNOME release gotcha.

    Seriously though, a stable API is not the GTK/GNOME developers’ agenda here. Nobody wanting a stable API should write software with this toolkit. That said, if you’re a true front end aficionado and you’re looking to make your software look awesome every six months, GNOME has got you so covered like the chocolate on a peanut M&M.

    For those wanting to write software that won’t magically kerslode without yet another recompile (or heavily relying on your distro to do that dirty work) stick with KDE/Qt group. They tend to be less breaky each release.

    • Gecko@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 year ago

      So basically it’s just another GNOME release gotcha.

      AFAIK, the extension developer needs to explicitly set each version of Gnome they support. Even when the Gnome version doesn’t have any breaking changes, the extension developer still needs to update their extension to enable their extension for the new Gnome version.

      • Vincent
        link
        fedilink
        English
        arrow-up
        7
        ·
        1 year ago

        It makes sense that you have to explicitly verify that it works on every release - even if there had been no intentional breaking changes. That said, if an extension developer would really prefer to YOLO it, they could just pre-emptively add a bunch of future releases.

        (Of course, ironically that would’ve broken when they switched to 40.)

        • Natanael@slrpnk.net
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          It would make more sense to specify something like API versions, not software versions, and flag on the client when it changes without the addon being updated (giving you a choice to run it with a warning or not). That is, unless the version update is specifically flagged as breaking compatibility, in which case it would just warn and not offer to run it anyway until it’s been updated.

          • Chewy@discuss.tchncs.de
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            Gnome doesn’t really have an extension API and instead the extensions hook directly into Gnome Shell. This allows extensions to do basically anything, but each new Gnome release might break an extension (if the used code path is changed).

    • Ddhuud@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      1 year ago

      I had to orphan a very simple extension I wrote for gnome 3.2-3.10 It was a bugfix that for some reason upstream didn’t even want to acknowledge it existed, and never accepted the patch. So I made the extension, but after about a year of constant breakages I gave up.

      That ordeal really made me feel unappreciated as a contributor.

    • Spectacle8011@lemmy.comfysnug.space
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Seriously though, a stable API is not the GTK/GNOME developers’ agenda here. Nobody wanting a stable API should write software with this toolkit.

      This blog post doesn’t mention GTK, but I’ve heard GTK will sometimes implement breaking changes in minor version bumps. I was thinking about writing some software with GTK, and I haven’t been deterred so I guess I’ll learn the hard way, but has GTK 4 had any of these stability problems yet?

  • Vincent
    link
    fedilink
    English
    arrow-up
    21
    ·
    1 year ago

    I will say, as a JavaScript developer, the new module system is a pain everywhere. Node.js went to great pains to allow for an upgrade path without breaking changes, and it’s still a PITA for developers because there are so many edge cases that could go wrong, so you still have to actually keep testing in both older and newer versions.

    A hard break like this is painful, but I’m not sure if there’s a better solution. On the upside, it looks like it’ll be easier for someone like me to contribute fixes for this, even if I don’t know the specifics of extension development otherwise.

  • LeFantome@programming.dev
    link
    fedilink
    arrow-up
    21
    ·
    1 year ago

    I am all for hating in GNOME for constantly breaking things. In this case though, are they not moving away from their non-standard system to the JavaScript standard? That seems like something to be supported and, in the long run, it will likely lead to less breakage.

    Or am I misunderstanding?

    • Crazazy [hey hi! :D]
      link
      fedilink
      arrow-up
      5
      arrow-down
      2
      ·
      edit-2
      1 year ago

      Yes but it would have been nicer to have a transition period in which both methods are supported for a little while so that you don’t literally break every extension in existence up to this release

    • Koffiato@lemmy.ml
      link
      fedilink
      arrow-up
      4
      arrow-down
      2
      ·
      1 year ago

      I find it naive to think GNOME would suddenly start caring about compatibility as moving to a standard doesn’t guarantee such.

  • OldFartPhil@lemm.ee
    link
    fedilink
    English
    arrow-up
    21
    ·
    1 year ago

    See, this is the beauty of running Debian stable as your daily driver. I’ll be on Gnome 43 for two more years, so by the time I upgrade to Gnome 45+ extensions should be compatible. Only half-joking, I really do avoid a lot of early adopter regressions and breakage.

    • aleph@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      Arch does too, albeit to a lesser extent. Gnome updates usually take around 4 to 5 weeks after the official release to hit the Pacman repos.

      Means you can stay bleeding edge but avoid day 1 breakages for the most part.

  • regalia@literature.cafe
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    1 year ago

    So what I’m reading is to wait to upgrade until my dash-to-panel and app-indicator extensions are updated

    • d_k_bo@feddit.de
      link
      fedilink
      arrow-up
      10
      ·
      1 year ago

      gnome-shell-extension-appindicator moved to the new modules system 3 weeks ago

    • ⸻ Ban DHMO 🇦🇺 ⸻@aussie.zone
      link
      fedilink
      English
      arrow-up
      22
      arrow-down
      1
      ·
      1 year ago

      It’s probably the best scripting language, especially for developers of C-style languages. Python has weird syntax and is slow, Lua is really fast but also has weird syntax. JavaScript looks pretty much like C syntax wise. It’s also possible to use a wide range of existing JavaScript projects to make extension development less burdensome

      • wvstolzing@lemmy.ml
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        The JS bindings to GTK4 (GJS) are complete, AFAIK; & allow for facilities like Gtk.Expression which the Python bindings still don’t have — & they’ve made rapid progress in a short time. The online documentation that’s available is also getting really good.

        Though I’m not sure why extensions have to be in JS, since JS is acting as a ‘glue language’ to the GObject bindings anyway. Isn’t an extension just a GTK application that talks to specific DBus interfaces?

        I suspect that the issue boils down to not-so-well-fleshed-out (to put it politely) dbus interfaces on GTK apps. Probably GJS has an easier time setting/sending messages & signals over DBus, so that’s why extensions are in JS.

        Many languages have well functioning bindings to GObject, Gdk, etc.; some are more complete than others (lua’s (lgi) are trailing behind – but still, you can do things like subscribe to a dbus_proxy in an embedded lua that lives inside vim or neovim, and send-receive messages with that) & some even come with good documentation, tutorials, etc.

    • bamboo@lemm.ee
      link
      fedilink
      arrow-up
      19
      arrow-down
      1
      ·
      1 year ago

      Yeah! They should have invented their own obscure language for no reason rather than use probably the single most well known programming language on earth!

    • Ddhuud@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      1 year ago

      The same it does everywhere else. Capitalizing on the sheer number of web devs, and the fact that we get things done without being petty about things we don’t like.

    • d3Xt3r@lemmy.nzM
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      1 year ago

      Um, you’re like more than a decade too late to ask this question. Javascript is pretty much everywhere now, whether you like it or not.

      For the record, I dislike it as well - not the language itself mind you, but the fact that they’re using it to make bloated desktop apps and desktop UX. Long gone are the days when devs cared about performance, sometimes going as far as writing code in ASM to get the most out of paltry hardware.

      Nowadays, even a $25 computer like the Raspberry Pi has enough computing resources to run bloated JS apps, so no one really cares any more, except for old fogies like us who grew up using entire operating systems that fit on a single floppy disk.

      • Holzkohlen@feddit.de
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        1 year ago

        I like to tell people Chris Sawyer wrote Rollercoaster Tycoon 1 and 2 by himself entirely in ASM. Still amazing games in 2023

        • d3Xt3r@lemmy.nzM
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          edit-2
          1 year ago

          Equally (or more?) impressive is the procedurally generated 3D FPS .kkrieger, which weighed a paltry 96KB. 96KB in 2004 was quite impressive, considering that Doom, released a decade prior, was 2.39 MB, and even the original Wolfenstein 3D, released in '92, was 1MB.

      • AProfessional@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        JavaScript itself is not particularly bloated. It is smaller than Python and fast as luajit. Probably the best scripting choice.

        If you want to write a modern shell in assembly have fun.

        • d3Xt3r@lemmy.nzM
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          I never claimed that Javascript itself was bloated - it’s about using the right tool for the right job. The bloat comes from using awful frameworks like Electron to create fake “native” apps, and then fooling users into thinking they’re getting a native app, wasting tons CPU resources and sysadmin time trying to fix these bloody Electron apps into shape (speaking as a DevOps guy).

          Also, there’s a world of options to chose from for shell programming that strike a better balance between performance and practicality, in the spectrum between ASM and JS. Oh, and writing a modern shell in ASM is most definitely fun, you should give it a try sometime. ASM shells - actually, entire operating exists already, if you aren’t aware of it. You really should check out MenuetOS or KolibriOS sometime. Sure, it’s nothing more than a hobby project, but it’s quite fun to take it for a spin, and experience a preview of how fast and effecient operating systems could be.

        • d3Xt3r@lemmy.nzM
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Yeah, but not a full-fledged GUI OS with all your basic GUI tools, including a GUI web browser. QNX had a floppy version back that that fit everything - even a bunch of games - on a single 1.44MB floppy.

          In saying that, there are modern GUI OSes which you can fit on a floppy, such as MenuetOS and KolibriOS. And because they’re coded fully in assembly, it can actually fit and do a lot more that what QNX-floppy could do back then, which is very impressive for modern code.

    • pbsds@lemmy.ml
      link
      fedilink
      arrow-up
      1
      arrow-down
      3
      ·
      1 year ago

      The only real alternative to an embedded scripting language is lua, and too few prefer it over js. Lots of internals in gnome-shell is also written in js, allowing the scripting language to hook straight into the api and data structures without a plugin interface.

      In a distant future everything is we assembly, with typed stable interfaces for plugins. But the might happen in gnome 8

      • AProfessional@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        The day it has a stable API is the day everyone’s favorite extension dies. The powerful part of it is that they are monkey patched in.

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    5
    ·
    1 year ago

    Extensions that target older GNOME versions will not work in GNOME 45. Likewise, extensions that are adapted to work with GNOME 45 will not work in older versions.

    Holy fucking lol

    • sugartits@lemmy.world
      link
      fedilink
      arrow-up
      3
      arrow-down
      4
      ·
      edit-2
      1 year ago

      Just typical Gnome these days, sadly.

      This isn’t news at all. Gnome very regularly breaks extensions on every release.