Bug 468169 - Option to delete or to edit flatpak permissions added by the user
Summary: Option to delete or to edit flatpak permissions added by the user
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_flatpak (show other bugs)
Version: 5.27.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2023-04-05 12:37 UTC by postix
Modified: 2023-04-20 13:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2023-04-05 12:37:13 UTC
SUMMARY

You can add new permissions with the button "+ Add new" and disable / enable those as well as reset all made changes.
However, it is not possible to edit or to delete an added rule. It would be great if that was possible.

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 20:02:25 UTC
Unchecking them would mark them for deletion. It will work the same way for Filesystems, D-Bus services and Environment variables, once https://invent.kde.org/plasma/flatpak-kcm/-/merge_requests/91 is merged. Additionally I want to replace checkboxes with icon-only "delete" buttons, and markup text with strike-through attribute and maybe faded text color.
Comment 2 postix 2023-04-06 10:52:54 UTC
> Additionally I want to replace checkboxes with icon-only "delete" buttons,
> and markup text with strike-through attribute and maybe faded text color.

But would your solution allow to temporarily disable a rule? For instance to check if this rule interfered with something or to temporarily disable access? If those rules got deleted, one would need to note down those before deletion in order to add them back later.
Comment 3 ratijas 2023-04-06 12:47:43 UTC
With the current implementation (and the one that's coming to replace it), they won't get actually removed from the list view until you switch pages.  There is (syntactically) no way to preserve them in config between switches or restarts though. The model writes to a config everything that's enabled and actually differs from defaults.
Comment 4 ratijas 2023-04-20 13:41:24 UTC
With https://invent.kde.org/plasma/flatpak-kcm/-/merge_requests/91 merged, all sections and permissions are fully and correctly editable, and custom entries can be unchecked to mark them for deletion. The UI is currently not great about explaining that to a user, but that would be a topic for a follow-up UI improvement, not a bug fix.

Persisting "temporary" deletions of custom entries is not supported nor planned, sorry. Just uncheck them, hit Apply, run your app, and check & Apply again — all while not closing the KCM window.