-
-
Notifications
You must be signed in to change notification settings - Fork 196
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-builder builds killed by xdg-desktop-portal due to background restriction #478
Comments
As an update, I changed the app-id and did indeed get a Shell dialog asking me whether I want to allow or deny the background operation. According to @barthalion on #flatpak, builds should not be part of this. |
Well, it is a feature to control background activity in flatpaks. If your builds are running in flatpaks, they are affected. |
This is relatively common problem though. Ideally there should be a way to exclude builds started by flatpak-builder from background activity control. |
Thanks for open this issue! I also add an error log so that it can be found more easily:
To reset the permission check the command:
|
I just spent several hours searching for some explanation for why my
and it was really hard to figure out, I found this ticket mostly by accident. Of course, I'm affected by the same issue. The Now, can we please make this more user friendly?
At least 1) and 2) should be relatively easy to do, I hope, and would improve this situation dramatically. Thanks. |
just ran into this issue, i agree that there needs to be a better heads up that this permission needs to be set. |
Since #901 the background monitoring code is more lenient towards background-running apps, and won't kill them on spot, unless users actively disable that. That's enough to cover the use-case of GNOME Builder, although annoyingly, it shows up as a background app while compiling. |
Still a bit confusing. Came across this today while in GNOME. While building I got the notification that the application is running in the background. I get the dialog with options "Force quit" and "Allow". At that time, I was still rebuilding so I did not expect my app to be running so I clicked "Force quit". I spent the next hour debugging why my flatpak-builder space is getting killed at random times. |
Would definitely agree that this is still confusing. 4 years later and I just spent the afternoon trying to debug why it was getting killed. |
My flatpak-builder build was inexplicably getting SIGKILLed seemingly on a time-out. After hours of debugging, I found out that it was getting killed by xdg-desktop-portal. Turns out, the app-id of my manifest was somehow denied background operation (according to permission-viewer) so xdg-desktop-portal was killing bwrap spawned by bwrap spawned by flatpak-builder. I don't recall seeing any GNOME Shell prompt for background operation related to this app-id. Allowing the background operation for the app-id in permission-viewer fixed the issue.
Here's the manifest that I used.
sleep 300
was more than enough to trigger the issue.The text was updated successfully, but these errors were encountered: