Bug 466325 - Add UI to enable/disable apps running in the background
Summary: Add UI to enable/disable apps running in the background
Status: RESOLVED INTENTIONAL
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_flatpak (show other bugs)
Version: 5.27.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
: 470461 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-02-24 01:29 UTC by Thiago Sueto
Modified: 2024-04-24 14:47 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Sueto 2023-02-24 01:29:06 UTC
When a flatpak app is running in the background (e.g. as a tray icon once the main window is closed) on Wayland, a notification shows up asking if the user wants to keep it running in the background or not. You can test this with Telegram or KSnip, a notification shows up once you press the X close button and it goes to the tray.

If the user disallows the app from running in the background, they can easily revert this setting using Flatseal (it's one of the last options at the bottom of the page), but they cannot with the Flatpak KCM.

This is particularly problematic when combined with a separate but destructive issue where applications notify they're running in the background when they're actually not (this is the case with Firefox, for instance), so the notification appears when the window is still in the foreground. Once the user disallows Firefox from running in the background, the moment they try to open it, it closes again, making it impossible to use.
Comment 1 postix 2023-05-30 18:02:28 UTC
Up to now a workaround is to use Flatseal to change the "Background" setting.
Comment 2 Nate Graham 2023-06-05 05:15:10 UTC
*** Bug 470461 has been marked as a duplicate of this bug. ***
Comment 3 Artur Paiva 2023-10-28 01:56:19 UTC
Can confirm,

I use LibreWolf (which if forked from Firefox) and not knowing why it was asking me to close a background app that wasnt on the background I clicked to close. Then librewolf keep closing and was pretty hard to find this bug to solve the issue. Made a little worse by the fact that librewolf is my main browser, luckly I have brave as a spare browser, which asked the exact same question but I've clicked in "allow" this time.

Can confirm this happened to me on both librewolf and brave even when the browsers where open and actually not in the background at all.
Comment 4 Alexander Sanderson 2023-12-12 14:46:31 UTC
I believe the background app notification is being retired in Plasma 6. Will this issue become closed by then?
Comment 5 Nate Graham 2023-12-12 15:16:26 UTC
Yep, this is effectively "fixed" in Plasma 6 by removing the feature it would control.