Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak Id Migration Pains #2882

Open
3 tasks
PhoneDroid opened this issue May 24, 2024 · 15 comments
Open
3 tasks

Flatpak Id Migration Pains #2882

PhoneDroid opened this issue May 24, 2024 · 15 comments
Labels

Comments

@PhoneDroid
Copy link

PhoneDroid commented May 24, 2024

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?

  • I have tried reproducing this issue in Chrome and it could not be reproduced there
  • I have tried reproducing this issue in vanilla Chromium and it could not be reproduced there
  • I have tried reproducing this issue in ungoogled-chromium with a new and empty profile using --user-data-dir command line argument and it could not be reproduced there

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

  • I upgraded my system ( Kubuntu ) to 24.04 ( Noble Numbat ) this week

  • I got the Flatpak Id migration notice

  • I migrated UG

  • UG didn't open anymore

  • I tried running the application shortcut command manually
    ⭢ Resulted in the log
    ⭢ No useful info

  • Checked around for any issues, discussions, gitter talk, ..
    ⭢ Nothing

  • Found the portable version ( Appimage )
    ⭢ Works but didn't use my current profiles

  • Attempted to use Flatseal to give it all permissions
    ⭢ Didn't work
    Apparently I had to close Flatseal every time to have the settings apply
    ( Nope, I was just too fast and it didn't adapt the change right away )

  • Attempted to use Flatseal to give it all permissions & closing it
    ⭢ Worked!

  • Narrowed down the required permissions to be changed to:
    image

@PhoneDroid PhoneDroid added the bug label May 24, 2024
@networkException
Copy link
Member

CC: @rany2

@rany2
Copy link
Member

rany2 commented May 24, 2024

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

@rany2
Copy link
Member

rany2 commented May 24, 2024

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
Copy link
Author

~/.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
Copy link
Author

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
Copy link
Member

rany2 commented May 24, 2024

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
Copy link
Member

rany2 commented May 24, 2024

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

@PhoneDroid
Copy link
Author

PhoneDroid commented May 24, 2024

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
Copy link
Member

rany2 commented May 24, 2024

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
Copy link
Author

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
Copy link
Member

rany2 commented May 24, 2024

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

@PhoneDroid
Copy link
Author

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
Copy link
Member

rany2 commented May 24, 2024

@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
Copy link
Author

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
Copy link
Author

@rany2 Made a PR for the FAQ

ungoogled-software/ungoogled-chromium-wiki#30

@networkException networkException pinned this issue May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants