-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 apps do not work #600
Flatpak apps do not work #600
Comments
Huh. Didnt meet that one. Does entering this in a console fix it (with or without sudo) ?
|
With sudo, of course. |
Just tried with 10-3 daily build and the issue is still present. |
I can reproduce the issue |
Another user in Discussions has the issue, this is the list of apps and whether they launch or not: App Center - launches Calculator - does not Moving the list here so it is kinda centralized |
Could this have anything to do with the AppArmor issue where it prevents some apps from running? Someone want to try to disable AppArmor temporarily and see if the apps start working? |
I found this which supposedly kinda fix the issue. Needs digging down. If upstream is fine with the issue, maybe something like this could be a solution https://etbe.coker.com.au/2024/04/24/ubuntu-24-04-bubblewrap/ |
OK if it really is this AppArmor issue - then perhaps the ISO build should include specific profiles for each built-in app that is not opening? Instead of a broader loosening of permissions? |
We could. I dont know if that would be reliable, though, because bwrap could act up later/on later builds/for other people for those which seem to work. From memory, i borked the UEFI and needed to rely on Web in Demo Mode for the steps to unbork it, and it ran fine Also the demo is not intended to be used for anything sensitive. It is what people will use to test eOS. If some apps randomly do not work, users could decide to drop the distro/not support. With 8 around the corner it feels like theres not much time to avoid this to happen. Im not at home, cannot check now, but could you check whether you have The Issue reproducing like the list above ? |
Yep I can repro this. |
Where does the issue should go ? For the PR to add apparmor profiles ? https://github.com/elementary/os ? |
We probably should ship the profiles with each affected package. So in the |
Looks like the AppArmor profile for bwrap is included in the apparmor-profiles. Running the two following commands launches Web successully on OS 8 RC live image:
|
Why does this issue not appear on installed system ? |
Not sure, just a guess that perhaps the But question still remains - maybe Ubuntu noble desktop image already has the package included but not for live packages? |
Created a branch to pull apparmor-profiles into live seeds: elementary/seeds#136 and to add a new live hook to configure the bubblewrap profile: elementary/os#735 |
@vjr afaict it isn't installed on the actual system. According to https://git.launchpad.net/ubuntu/+source/apparmor/tree/profiles/apparmor/profiles/extras/bwrap-userns-restrict this profile basically removes all restrictions from bubblewrap tbh we might want to do this on the installed system as well if it fixes flatpak apps not opening in the guest session |
if it doesnt introduce security issues... |
Flatpak apps in bubblewrap are already sandboxed so I'm actually not sure why they are additionally sandboxing bubblewrap itself with apparmor |
Just waiting for this to publish and then we can trigger a build and make sure it was fixed https://code.launchpad.net/~elementary-os/+archive/ubuntu/daily/+packages?field.name_filter=meta&field.status_filter=published&field.series_filter=noble |
Whelp, the hook errors. There's probably something I'm missing here but I don't know enough about how hooks work in the build system or about apparmor tbh Reverted and drafted elementary/os#738 |
I have fixed this issue as described here temporarily in the live X11 session by typing in the terminal the following command: |
What Happened?
I'm on the Demo session of the daily build ISOs. This happends in all daily images I tried since about 2 or 3 weeks.
The workaround I found is to chmod u+s /usr/bin/bwrap
Steps to Reproduce
Click on any flatpak app or flatpak run ... command.
Expected Behavior
apps should run
OS Version
8.x (Early Access)
Session Type
Classic Session (X11, This is the default)
Software Version
Latest release (I have run all updates)
Log Output
No response
Hardware Info
Acer laptop Nitro5 , intel integrated + nvidia gtx1650
The text was updated successfully, but these errors were encountered: