flatpak-builder
flatpak-builder copied to clipboard
Modifying app permisions breaks app build process
Checklist
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
flatpak-builder version
1.4.1
Flatpak version
1.15.10
How to reproduce
- Build flatpak application using flatpak-builder
- Run application and notice, that it is displayed among "Background Apps" in GNOME system menu
- Go into "Settings" -> "Apps" and remove "Run in Background" setting for this application.
Expected Behavior
Permissions should not interfere with application build.
Actual Behavior
flatpak-build stops with error message: clang++ "Child process exited with code 137"
Additional Information
If custom permission settings might interfere with build, flatpak builder should inform about that before build. If this is something by design, I would like to know explanation, why this happens, just to satisfy my curiosity :)
I have not looked at this in depth but the process management is not done by flatpak-builder or flatpak, so I think this should be reported elsewhere (xdg-desktop-portal?). flatpak build explicitly includes information in the manifest that it is a build environment and not running an app. The process that checks for this permission could check that.
It is possible something should be changed here to never use the app id, but I'm not sure offhand.
It's because without that permission, the portal kills the background process. Don't remove it.