UbuntuAsahi / ubuntu-asahi

Native Ubuntu installations for Apple silicon hardware
https://ubuntuasahi.org/
869 stars 27 forks source link

Widevine Support #71

Open clementperon opened 1 year ago

clementperon commented 1 year ago

Hi,

I have try the widevine installer from marcan with some fixes for sh, but it seems to not work with Chromium installed as a SNAP :(

https://github.com/clementperon/widevine-installer

Does someone try and had a success?

Thanks

eslerm commented 1 year ago

An Asahi only snap or asahi channel track in existing browser snaps are likely necessary, unless snaps are not used. We'll talk to the snap folks :)

clementperon commented 1 year ago

Is it not possible to manually copy the shared libs in the "chromium snap environement"?

eslerm commented 1 year ago

Something like that should work. For Ubuntu Asahi we want an upstream solution, and will help with that.

From https://oftc.irclog.whitequark.org/ubuntu-asahi/2023-11-01 snaps based on core24 may be required for glibc dependencies.

clementperon commented 1 year ago

@eslerm I try to rebuild a proper chromium snap => switch to core24 => rebuilding gnome-sdk-asahi => rebuild gnome-sdk. So really not trivial, I think I will wait at least that gnome-sdk switch to core24 to go for the proper solution.

For the dirty solution do I have to extract the squasfs -> patch the lib and repackage? Or do you see another solution?

eslerm commented 11 months ago

Manually copying should work. It can be done through snapcraft too. After unsquashing, you can rebuild and edit squashfs-root/snap/snapcraft.yaml. Commands can be ran during different stages etc.

If there is a clean distribution system for asahi-widevine, there's a chance upstream browser's would o-k an asahi snap track.

SevralT commented 10 months ago

First. Thanks for your fix in script. Second, after hours I found problem. It so easy problem. Снимок экрана от 2024-01-21 01-25-10 Configs from file just don't add automatically to config of firefox. You can fix this problem with just manual adding that in about:config

theofficialgman commented 9 months ago

chromium flatpak should work (once you add Widevine in a place it is looking for) as it switched to a runtime with GLIBC 2.36+ (support for RELR, required by ChromeOS ARM64 Widevine) 3 weeks ago https://github.com/flathub/org.chromium.Chromium/pull/346

orisson003 commented 3 months ago

Just encountered this issue when switching from Fedora to Ubuntu on M1. So far widevine still not working on default Firefox on Asahi Ubuntu. I’m wondering if this needs an upstream fix that snap Firefox needs core24 for the glib dependence. Is it possible to contact the snap folks?