flatpak / flatpak-builder

Tool to build flatpaks from source
GNU Lesser General Public License v2.1
140 stars 93 forks source link

Modifying app permisions breaks app build process #623

Open joshas opened 2 weeks ago

joshas commented 2 weeks ago

Checklist

flatpak-builder version

1.4.1

Flatpak version

1.15.10

How to reproduce

  1. Build flatpak application using flatpak-builder
  2. Run application and notice, that it is displayed among "Background Apps" in GNOME system menu
  3. 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 :)

TingPing commented 1 day ago

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.