Bug 468170

Summary: Sort rules by default first, custom later and alphabetically
Product: [Applications] systemsettings Reporter: postix <postix>
Component: kcm_flatpakAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: joshiesuhaas0, nate
Priority: NOR    
Version First Reported In: 5.27.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.27.4
Sentry Crash Report:

Description postix 2023-04-05 12:40:45 UTC
SUMMARY

When adding new rules they are sorted somehow abitrary:

```
Filesystem Access
All User Files
All ...
/home/myaccount/foo/bar  # custom rule
All System Configurations
```

I would expect custom added rules to appear last and sorted alphabetically.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230403
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Comment 1 ratijas 2023-04-05 15:39:51 UTC
Custom rules are loaded after default ones (unless they override existing defaults). But they are currently unsorted, yes.

About that particular bug you found in Filesystem Access section, it's been fixed in https://invent.kde.org/plasma/flatpak-kcm/-/commit/5cb9912fc5dcdb8501e3b971b13f4c3ebbf543a2