Skip to content
Verified Commit 936d21af authored by ivan tkachenko's avatar ivan tkachenko 🗯
Browse files

Implement filesystems entry (de-)serializer

It tries to stay consistent with flatpak-override command. For example,
it is capable of deduplicating various "home", "~" entries based on
their type rather than actual prefix string literal; and also
serializes them back in a "better compatibility with older Flatpak
versions" mode. Such data structure makes it trivial to check whether
a particular path is already in the list of permissions, as it stores
actual path as a separate string.

List of special directories supported by flatpak is stored as an array
with necessary metadata for each type. This makes it trivial to extend
it, should Flatpak ever add more special filesystems.

(cherry picked from commit 835e33df)
parent 80b41ff2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment