Skip to content
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

False detection of "background activity" for some Flatpak apps #97

Open
mpanhans opened this issue Jan 28, 2024 · 0 comments
Open

False detection of "background activity" for some Flatpak apps #97

mpanhans opened this issue Jan 28, 2024 · 0 comments

Comments

@mpanhans
Copy link

What Happened?

Some flatpak applications such as LibreOffice from Flathub are incorrectly being detected for background activity. This causes two interrelated problems:

  1. Upon first launching LibreOffice from a fresh install, a notification appears that states the application is running in the background without appropriate permissions. User is presented with options to forbid or allow. For applications like LibreOffice, it probably doesn't make sense for this notification to appear at all.

  2. If the user selects Allow or clears the notification, everything is fine. But if the user selects Forbid, this will introduce a bug that whenever LibreOffice is opened, it will close on its own after several seconds, even if it is the actively focused application. Some users might reasonable choose to Forbid the application from running in the background; but then the only way to fix the application closing issue is to use the command line.

There was a similar bug report in KDE: https://bugs.kde.org/show_bug.cgi?id=473881

Steps to Reproduce

  1. Connect the Flathub repository and install LibreOffice
  2. Launch LibreOffice
  3. After some seconds, you still get a notification saying that LO is running in the background without appropriate permissions. [This should probably not appear.]
  4. Select the Forbid option to prevent LO from running in the background.
  5. Then whenever launching LibreOffice, it will close after several seconds, even if it is the actively focused application (i.e. it is not merely running in the background)

Expected Behavior

  1. To me at least it is not expected that launching LibreOffice generates a notification that the application is running in the background without appropriate permissions.
  2. If the user Forbids LibreOffice from running in the background through that notification, it should not cause LibreOffice to close when it is actively being used.

If the user does click Forbid, LibreOffice becomes unusable, the solution is to use the Terminal to run the command: flatpak permission-set background background org.libreoffice.LibreOffice yes

OS Version

7.x (Horus)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

@lenemter lenemter transferred this issue from elementary/triage Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant