Pamac needs authentication to install/upgrade flatpaks

Pamac --version

Pamac 10.4.0-2 - libpamac 11.3.0-1

Variant in use

GUI

Distribution

Manjaro

Desktop environment

GNOME

What's not working

Pamac asks for password authentication to install/upgrade flatpaks, where it shouldn't need to.

How to reproduce?

  • Make sure pamac flatpak plugin is active
  • Install a single flatpak app without any AUR or repo package pending for install

More information (optional)

Flatpak by its nature doesn't need authendication for installing or updating packages. Moreover it's advised not to use sudo with flatpak. But in pamac when you try to install a flatpak or upgrade one, pamac displays the authentication popup. It not only cause confusion and bad user experiance but also may be bad for the security of the flatpaks.