flatpak icon indicating copy to clipboard operation
flatpak copied to clipboard

[Bug]: Apps didn't start when allowed to talk to invalid D-Bus

Open JakobDev opened this issue 3 years ago • 0 comments

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.
  • [X] If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
  • [X] This issue is not a report of a security vulnerability (see here if you need to report a security issue).

Flatpak version

1.12.7

What Linux distribution are you using?

Manjaro Linux

Linux distribution version

Rolling Release with the latest Updates

What architecture are you using?

x86_64

How to reproduce

Give a Flatpak App with Flatseal permission to talk to a invalid DBus Name (e.g Test).

Expected Behavior

Everything should work. It should print a Warning that this Permission is invalid and ignored, but that's all.

Actual Behavior

The App do not start. It give you this Message when you try to run in terminal:

Error: Invalid dbus name test

That makes the App completly unusable until you reset the Permissions. Thats even worser when you do it on global.

flatpak override didn't allow this:

$ flatpak override --talk-name=test
Error: Invalid dbus name test

But it is still possible to set this Permission by editing the file in the overrides directory, what is what Flatseal does. Flatpak should not rash in that case.

Additional Information

No response

JakobDev avatar Jun 10 '22 09:06 JakobDev