Bug 461908

Summary: Add flathub repository as `user` repo by default
Product: [Applications] Discover Reporter: soredake <katyaberezyaka>
Component: Flatpak BackendAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: aleixpol, jgrulich, nate, travier
Priority: NOR    
Version: 5.26.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=441428
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description soredake 2022-11-16 12:42:47 UTC
SUMMARY
I think it's better to add flathub repo as `user` repo by default, to avoid pollution of /var/tmp that can happen (https://github.com/flatpak/flatpak/issues/528 and https://github.com/endlessm/systemd/commit/6bdb355a9e515b7b84ac1f37747603d4db4267c7) on distro's that don't clean up this path (opensuse for example) and to avoid any use of polkit (no entering password's anymore on distro's that require it when working with flatpak). Another reasons for using `user` over `system` can be found here https://bugs.kde.org/show_bug.cgi?id=441428#c6

STEPS TO REPRODUCE
1. Go to discover settings.
2. Add flathub repo.
3. It will be added as `system` repo.

OBSERVED RESULT
Repo added as `system`.

EXPECTED RESULT
Repo added as `user`.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora KDE 37
(available in About System)
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Related reports:
https://bugs.kde.org/show_bug.cgi?id=452000
https://bugs.kde.org/show_bug.cgi?id=441428#c6
https://bugs.kde.org/show_bug.cgi?id=405968