Closed ghost closed 3 years ago
@probonopd updated to use the~/.config/filer-qt/default
directory for metadata and the logic is now to check if writable (using access()
) to determine whether to use the extended attributes of the actual directory or in the ~/.config/filer-qt/default/metadata
tree
Thanks @moochris. I think instead of QDir().homePath() + "/" + ".config/
we should use the native Qt way of determining this directory, QStandardPaths::writableLocation
AppConfigLocation
. Wdyt?
@probonopd yes, good point, forgot about these functions... I'll update 🙂
@probonopd - OK, fixed the config path
Thanks @moochris. I think we should also begin a documentation page on Metadata in our Developer documentation at https://hellosystem.github.io/docs/...
When extended attributes can't be written to a path (due to lack of user permissions), they are now written to a mirror of the directory structure under ~/.config/filer-qt/default/metadata
Likewise, when reading an extended attribute, if the requested path is not writable, the mirrored structure under filer-metadata is checked.
https://github.com/helloSystem/hello/issues/79
Signed-off-by: Chris Moore chris@mooreonline.org