gnome-nvidia-extension icon indicating copy to clipboard operation
gnome-nvidia-extension copied to clipboard

Yet another GNOME update (v45 compatibility)

Open kenohassler opened this issue 1 year ago • 13 comments

Current Situation

GNOME changed their API yet again, so this time we cannot just bump the version number in metadata.json. I did the minimum necessary changes to get it running in my fork, but the code quality is not great and has not actually been tested on bare metal yet.

Steps Forward

The switch to ECMAScript modules for gnome 45 breaks backwards compatibility and apparently there is no easy way to fix that. Since all "stable" distros will keep using gnome 40~44 for a while, I'd propose to keep the gnome 45 version in a separate branch. According to documentation, we could release a combined version on extensions.gnome.org to make everyone happy. Unfortunately, this means any feature / bug patch would have to be applied twice to keep the versions in sync for the near future.

ToDos

  • [x] Code cleanup & linting
  • [x] Actually test the stuff
  • [ ] Find out how to build combined releases

kenohassler avatar Oct 22 '23 20:10 kenohassler

I added a fix to actually make it work and cleaned up the code. All in all, the change is rather minimal (after you figure know which knobs to turn 😁 ) There is one blocker before we can release a new version: According to the review guidelines, GTK imports are no longer allowed. We use them to construct the preferences window. Hence, this needs to be ported to libadwaita. I'll have a look at this.

kenohassler avatar Nov 04 '23 13:11 kenohassler

Please make a 45 version ASAP... Ubuntu and Fedora but not only use it. Thanks!

moctavianro avatar Feb 21 '24 08:02 moctavianro

Thanks for bumping this. I looked into GTK imports in the past and I think they are not allowed in the main extension, but fine to use in the settings widget. So I think my code is ready to be merged (into a new branch perhaps, since it totally breaks backwards compatibility).

kenohassler avatar Feb 21 '24 09:02 kenohassler

summonning @ethanwharris here to give this a look and maybe release the update on extensions.gnome.org? 😃

kenohassler avatar Apr 16 '24 12:04 kenohassler

Now that #214 and #215 have been merged, we can take the last few steps for a new version on gnome extensions:

  • [x] we should tag the commit and create a new release (v11)
  • [x] We should also tag the legacy branch and create a separate release for this
  • [ ] finally, @ethanwharris can add these to the gnome extensions website

derenv avatar Apr 16 '24 12:04 derenv

summonning @ethanwharris here to give this a look and maybe release the update on extensions.gnome.org? 😃

beat me to it :laughing:

derenv avatar Apr 16 '24 12:04 derenv

Hey @derenv @kenohassler cool! Let me know when you have the tag and I'll upload it for review 😄

ethanwharris avatar Apr 16 '24 12:04 ethanwharris

perfect. can you take care of the tagging @derenv?

kenohassler avatar Apr 16 '24 12:04 kenohassler

perfect. can you take care of the tagging @derenv?

Doing so now, thanks for updating the legacy branch!

derenv avatar Apr 16 '24 12:04 derenv

@kenohassler @ethanwharris Tags and releases created!

derenv avatar Apr 16 '24 12:04 derenv

@derenv @kenohassler New version and legacy update both in review 😃 Thanks!

ethanwharris avatar Apr 29 '24 09:04 ethanwharris

Hey @derenv @kenohassler Update here, the legacy release was accepted - we have a review for the new version here: https://extensions.gnome.org/review/54304 😄

ethanwharris avatar May 05 '24 09:05 ethanwharris

Hey @derenv @kenohassler Update here, the legacy release was accepted - we have a review for the new version here: https://extensions.gnome.org/review/54304 😄

pull request from @kenohassler merged, tagged and new release created

derenv avatar May 17 '24 10:05 derenv