Bug 468809 - flatpak-kcm doesn't show all the filesystem permissions Flatseal does + cannot edit them
Summary: flatpak-kcm doesn't show all the filesystem permissions Flatseal does + canno...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_flatpak (other bugs)
Version First Reported In: 5.27.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-22 12:35 UTC by SolidTemperature0
Modified: 2023-04-22 22:30 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SolidTemperature0 2023-04-22 12:35:13 UTC
SUMMARY
Flatseal shows me more more filesystem permisons that flatpak-kcm. For example flatpak-kcm doesn't seem to be able to show me the "xdg-config/gtk-3.0:ro" field Flatseal does. Moreover Flatseal also allow the possibilities to edit those "other files" fields, while flatpak-kcm shows them together with the defaults ones and doesn't allow you to modify or remove them, only to add more.


STEPS TO REPRODUCE
1. Open flatpak-kcm
2. Select any installed flatpak program

OBSERVED RESULT
Cannot find some filesystem fields, like "xdg-config/gtk-3.0:ro", cannot edit or modify "other files" fields, that are shown in the same way as the default fields.


EXPECTED RESULT
Be able to see all the filesystem fields, like "xdg-config/gtk-3.0:ro", edit or modify "other files" fields that should be shown differently from the default ones (All users files, all system files, etc.)

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.10-1-MANJARO (64-bit)
Flatpak Version:  1:1.15.4-1
Comment 1 ratijas 2023-04-22 22:30:28 UTC
> For example flatpak-kcm doesn't seem to be able to show me the "xdg-config/gtk-3.0:ro" field Flatseal does.

It can, and it does. At least on master and upcoming Plasma/5.27.5.

> Moreover Flatseal also allow the possibilities to edit those "other files" fields

That's kind of oversimplification, and not how it really works. If you want a different filesystem path, just add it. If you don't need an existing one, just remove it. You don't change the name, you are deleting one and adding another. Since they are all potentially influenced by multiple levels of overrides, you can't just "change" the path on the last (user per-app) level and call it a day — there would still exist other entries in higher configuration layers. That is also the reason why removing entries that are provided from "defaults" is not supported — on a per-app user layer you can only assign them a different policy (e.g. !negate) but not to remove them.

The new dialogs UI is gonna make the process of adding new entries a bit more streamlined by introducing an Open Folder dialog to help users getting that path string right on the first try, so that they won't need to remove and re-add it just because of some stupid typo.