projecthamster / hamster

GNOME time tracker
http://projecthamster.org
GNU General Public License v3.0
1.08k stars 249 forks source link

'org.gnome.Platform/x86_64/45' dependency error with Flatpak install of 3.0.3 on latest Gnome 47 #770

Closed neekfenwick closed 2 weeks ago

neekfenwick commented 2 weeks ago

I just downloaded https://github.com/projecthamster/hamster/releases/download/v3.0.3/Hamster-3.0.3.flatpak from the Releases page and tried to install it on Fedora 41 running Gnome 47 (Fedora 41 was recently released and I upgraded to it today).

The application org.gnome.Hamster/x86_64/master requires the runtime org.gnome.Platform/x86_64/45 which was not found

Screenshot From 2024-11-11 13-32-11

I'm not familiar with Flatpak, but I see the package appears to depend on Gnome version 45 (if that's what the 45 means in that message) and we're on Gnome 47 now.

Is this a problem with my system or the Flatpak build?

neekfenwick commented 2 weeks ago

Update: apparently one should install Flathub, then the org.gnome.Platform/x86_64/45 package, which should solve this problem.

So, for my Fedora system, I found https://fedoramagazine.org/install-flathub-apps-fedora/ which says to install https://dl.flathub.org/repo/flathub.flatpakrepo, which I clicked on in the browser and installed via the Software GUI app. Then I tried flatpak install org.gnome.Platform/x86_64/45 and got an end-of-life warning:

$ flatpak install org.gnome.Platform/x86_64/45
Looking for matches…

Info: runtime org.gnome.Platform branch 45 is end-of-life, with reason:
   The GNOME 45 runtime is no longer supported as of September 18, 2024. Please ask your application developer to migrate to a supported platform.

With a 'do you want to continue' prompt, so saying Yes did install the package.

Then:

$ flatpak install ~/Downloads/Hamster-3.0.3.flatpak

Info: (pinned) runtime org.gnome.Platform branch 45 is end-of-life, with reason:
   The GNOME 45 runtime is no longer supported as of September 18, 2024. Please ask your application developer to migrate to a supported platform.
[..cut..]
Proceed with these changes to the system installation? [Y/n]: 

This did install Hamster successfully! So it was the Flatpak speedbump of needing to install Flathub and the org.gnome package that tripped me up.

A note for anyone else upgrading from an older version, I used to have my main hamster.db file in /home/neek/.local/share/hamster/hamster.db and the new Flatpak version seems to use /home/neek/.var/app/org.gnome.Hamster/data/hamster/hamster.db .. I was able to copy the old database over the new one (since my new one was empty, but backing it up first is a good idea anyway) and the new Hamster then loads with all my old time tracking etc present, which is very nice to have.

I notice now that the readme.md say to run flatpak install flathub org.gnome.Hamster which may have automatically fixed my lack of Flathub and requisite org.gnome package, I don't know. I just went to the Releases page and tried to install the .flatpak file I found there.

I'll close this, but I hope it helps someone in future.

neekfenwick commented 2 weeks ago

Closing.