tiliado / nuvolaplayer

Nuvola Player - Tight integration of web-based media streaming services with your desktop
https://nuvola.tiliado.eu/
BSD 2-Clause "Simplified" License
334 stars 27 forks source link

Can't install from Flatpak on PopOS 20.04. #759

Closed jnovek closed 3 years ago

jnovek commented 3 years ago

Hi! I added the Flatpak repo on PopOS and it claims that the Gnome 3.38 flatpak runtime is missing when it is actually installed.

I am following the instructions here: https://nuvola.tiliado.eu/nuvola/ubuntu/focal/

user@computer ~ ->     flatpak install nuvola eu.tiliado.Nuvola
Looking for matches…
error: The application eu.tiliado.Nuvola/x86_64/stable requires the runtime org.gnome.Platform/x86_64/3.38 which was not found

I've confirmed that the runtime is installed:

user@computer ~ -> flatpak install org.gnome.Platform/x86_64/3.38
Looking for matches…
Found similar ref(s) for ‘org.gnome.Platform/x86_64/3.38’ in remote ‘flathub’ (user).
Use this remote? [Y/n]: 
Skipping: org.gnome.Platform/x86_64/3.38 is already installed

It seems (according to Google) like this happens from time to time with various Flatpak packages but the resolution is not clear. I've tried running flatpak update and flatpak repair (just throwing stuff at the wall, here) but neither changed anything.

How do I resolve this?

jnovek commented 3 years ago

I also tried building from source but found that the diorite library isn't readily available without building from source it doesn't seem like Ubuntu was a dev target that y'all had in mind -- vala-lint isn't provided by any package in Ubuntu.

I realize that the above is a diorite problem but I'm posting it here to point out that Ubuntu users have no reasonable fallback if they can't make Flatpak work.

jiri-janousek commented 3 years ago

Hello @jnovek. It seems like a Flatpak issue rather than a problem caused by Nuvola. Not sure whether it is a general problem of Flatpak or an integration bug in Ubuntu or PopOS. Has the issue been reported to the respective bug trackers (Flatpak/Ubuntu/PopOS)?

The development target for Nuvola is Flatpak. Nuvola depends on libraries that are not available in common distributions. A notable example is a custom version of Chromium Embedded Framework, which we hope to replace in #583.

jiri-janousek commented 3 years ago

You may also try this:

flatpak remote-add --system --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --system --if-not-exists nuvola https://dl.tiliado.eu/flatpak/nuvola.flatpakrepo
flatpak update --system
flatpak install --system flathub org.gnome.Platform/x86_64/3.38
flatpak install --system nuvola eu.tiliado.Nuvola
jnovek commented 3 years ago

I 95% agree that it’s a Flatpak issue. This is actually the version of Flatpak distributed via Ubuntu 20.04 — PopOS is a distro layered on top of Ubuntu.

In addition to your noted solutions I’m also going to try uninstalling the Ubuntu Flatpak and installing the latest stock version provided by flatpak.org. I was just trying to avoid that because I don’t want to reinstall all my packages. :-P

Hopefully today? I will report back.

I’m mostly interested in helping you avoid any silent attrition that you may get from wonky FlatPak issues. That’s why I mentioned compiling from source, I was just observing that users have no easy fallback. :-). Sorry if that came out cranky-sounding.

If I find a solution is there a place in the docs for troubleshooting? I’d be happy to update and open a PR.

jiri-janousek commented 3 years ago

If you find any way to overcome the issue, you can post it here and then we can decide the proper final place.