Bug 466535

Summary: Flatpak permissions dont reset using the reset button
Product: [Applications] systemsettings Reporter: Henning <boredsquirrel>
Component: kcm_flatpakAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: major CC: jackhill3103, joshiesuhaas0, me, nate, sitter
Priority: NOR    
Version First Reported In: 5.27.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Henning 2023-02-27 15:44:39 UTC
SUMMARY
I had broken qBittorrent Flatpak overrides and they didnt change with "reset"

Also I tried to assign "/var/user/Downloads" to it, but in the config stood "/var//Downloads" which gave an error I suppose.


STEPS TO REPRODUCE
1. Change some flatpak settings in KDE
2. Reset them in GUI
3. Check the overrides via CLI

OBSERVED RESULT
The reset doesnt work.

EXPECTED RESULT
The correct command to reset them for the user is 

flatpak override --reset --user app.name

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.13-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Jack Hill 2023-04-15 10:28:26 UTC
The Reset button in the Settings page is for undoing any un-applied settings. If I'm understanding you correctly, I think what you should've pressed is the Defaults button (to set each option back to what it was originally).

Can you try the Defaults button and see if that gives the behaviour you expected? If so then I think it would be a good idea to change the Reset button to say something like "Undo Changes", to be a little more clear about its function.
Comment 2 ratijas 2023-04-15 14:23:52 UTC
"Reset" button correctly resets the settings view to its "freshly loaded" state, which is equivalent to closing system settings and opening again (or switching to a different KCM back and forth). And "Defaults" button correctly deletes any user overrides.

If you don't like text on those standard buttons, that is a wishlist/suggestion with a scope far outside of this particular Flatpak KCM, and you are free to propose alternatives in a separate bugreport.
Comment 3 Henning 2023-04-15 17:37:49 UTC
I dont really think it needs any replacement. I just confused it, my fault.