Bug 458657

Summary: Discover asks for password twice when installing a flatpak bundle
Product: [Applications] Discover Reporter: Patrick Silva <bugseforuns>
Component: Flatpak BackendAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: aleixpol, jgrulich, justin, m.a.zulliger, nate, remi+kde, travier, zilla
Priority: NOR    
Version First Reported In: 5.90.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick Silva 2022-09-03 11:35:21 UTC
STEPS TO REPRODUCE
1. download flatpak bundle of fameshot in the following url:
https://github.com/flameshot-org/flameshot/releases
2. open the downloaded file with Discover
3. click on 'Install' button and enter your password

OBSERVED RESULT
a few seconds after the last step, Discover asks for password again

EXPECTED RESULT
Discover asks for password once

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5
Graphics Platform: Wayland
Comment 1 Nate Graham 2022-09-06 14:30:18 UTC
Can confirm.

It may be also installing a new runtime, and it asks for authentication for each one, rather than batching them up.
Comment 2 Aleix Pol 2022-09-14 21:52:19 UTC
This will need further investigation, but my bet is that we are adding the remote (password 1) and then installing the app (password 2).

It occurs to me that in such cases we could default to adding bundles in the user's installation (which would mean 0 password prompts).
Comment 3 Martin 2024-11-07 12:10:01 UTC
I have just been asked for the password three times doing a larger update which included a flatpak.

OS: OpenSuSE Tumbleweed
Kernel Version: 6.11.5-2-default (64-bit)
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
X11
Comment 4 Rémi Piau 2025-07-17 19:34:04 UTC
Same on opensuse and fedora with multiple backends including flatpak both system and user.

Operating System: openSUSE Tumbleweed 20250711
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-1-default (64-bit)
Graphics Platform: Wayland
Comment 5 Patrick Silva 2025-09-03 12:17:56 UTC
*** Bug 509052 has been marked as a duplicate of this bug. ***