ungoogled-software / ungoogled-chromium

Google Chromium, sans integration with Google
BSD 3-Clause "New" or "Revised" License
19.56k stars 801 forks source link

Flatpak Id Migration Pains #2882

Open PhoneDroid opened 1 month ago

PhoneDroid commented 1 month ago

OS/Platform

Debian, Ubuntu, and derivatives

Installed

Flatpak

Version

Version 125.0.6422.76 (Official Build, ungoogled-chromium) (64-bit)

Have you tested that this is not an upstream issue or an issue with your configuration?

Description

Without giving UG access to all system files it doesn't start after the Flatpak migration

How to Reproduce?

  1. Install UG via Flatpak
  2. Attempt to run either via application shortcut or its resulting command
    /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/chromium --file-forwarding io.github.ungoogled_software.ungoogled_chromium @@u %U @@

Actual behaviour

UG doesn't start and prints the below log.

Expected behaviour

It starts.

Relevant log output

Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!

Additional context

networkException commented 1 month ago

CC: @rany2

rany2 commented 1 month ago

@PhoneDroid I can't reproduce it, what are the contents of ~/.local/share/flatpak/overrides/io.github.ungoogled_software.ungoogled_chromium?

rany2 commented 1 month ago

Can you try running flatpak update again? Apparently there's some issue in Freedesktop SDK and I'm not really sure if it's just unfortunate timing or not.

PhoneDroid commented 1 month ago

~/.local/share/flatpak/overrides/io.github.ungoogled_software.ungoogled_chromium

It's empty if I don't patch it with flatseal

And contains the following with the setting changed:

[Context]
filesystems=host
PhoneDroid commented 1 month ago

Can you try running flatpak update again? Apparently there's some issue in Freedesktop SDK and I'm not really sure if it's just unfortunate timing or not.

It did update something I guess: image

But wasn't fixed by it.

rany2 commented 1 month ago

I'm not facing this issue and I don't really know what's wrong atm, but what I could tell you is that the two packages were exactly identical so it's not clear to me what is causing this problem. If there are any more logs you could get, info, etc it might help.

rany2 commented 1 month ago

Well, what is the output of ls -lah ~/.var/app?

PhoneDroid commented 1 month ago

Well like I said, the log isn't saying anything: image

Well, what is the output of ls -lah ~/.var/app?

image

Maybe it's because I have my chrome profiles in a custom? location? /media/<User>/<Drive>/Settings/Chrome_Profiles/Data ( Have them in a local git repo )

rany2 commented 1 month ago

Maybe it's because I have my chrome profiles in a custom? location? /media/<User>/<Drive>/Settings/Chrome_Profiles/Data ( Have them in a local git repo )

Might be worth exempting that as well and dropping the --filesystem=host?

PhoneDroid commented 1 month ago

Maybe it's because I have my chrome profiles in a custom? location? /media/<User>/<Drive>/Settings/Chrome_Profiles/Data ( Have them in a local git repo )

Might be worth exempting that as well and dropping the --filesystem=host?

Seems to work, thanks! image

Should this be documented somewhere like the FAQ, something like Custom Chrome Profile Location?

rany2 commented 1 month ago

The old app ID would have required the same thing, most likely you forgot you put that exemption?

PhoneDroid commented 1 month ago

The old app ID would have required the same thing, most likely you forgot you put that exemption?

I don't remember ever using Flatseal to patch it ..

rany2 commented 1 month ago

@networkException Can you pin this issue and change the title a bit to clarify what the issue is? I doubt it's a common setup but just in case....

@PhoneDroid well, it had to have been the case.. maybe you used flatpak override instead of Flatseal? They both do the same thing

PhoneDroid commented 1 month ago

Only ever used Flatseal for 2-3 other programs, haven't touched the cmd-line - as far as I can remember.

Should I close the issue?

PhoneDroid commented 1 month ago

@rany2 Made a PR for the FAQ

https://github.com/ungoogled-software/ungoogled-chromium-wiki/pull/30