ethanwharris / gnome-nvidia-extension

A Gnome extension to show NVIDIA GPU information
45 stars 7 forks source link

Yet another GNOME update (v45 compatibility) #212

Open kenohassler opened 10 months ago

kenohassler commented 10 months ago

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

kenohassler commented 10 months ago

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.

moctavianro commented 6 months ago

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

kenohassler commented 6 months ago

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 commented 5 months ago

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

derenv commented 5 months ago

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

derenv commented 5 months ago

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

beat me to it :laughing:

ethanwharris commented 5 months ago

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

kenohassler commented 5 months ago

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

derenv commented 5 months ago

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

Doing so now, thanks for updating the legacy branch!

derenv commented 5 months ago

@kenohassler @ethanwharris Tags and releases created!

ethanwharris commented 4 months ago

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

ethanwharris commented 4 months ago

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 😄

derenv commented 4 months ago

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