Bug 473808 - XDG Extended Attribute spec support
Summary: XDG Extended Attribute spec support
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-27 14:13 UTC by AvidSeeker
Modified: 2024-03-11 12:37 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AvidSeeker 2023-08-27 14:13:08 UTC
SUMMARY
[XDG Extended Attributes guidelines][1] include metadata about files that is supported on the file system level. Many programs attach this metadata to downloaded or produced files, and it would seem an essential feature for a file manager to provide a way to view and edit this metadata. In particular, these xattrs are of high relevance:

    user.xdg.origin.url: for files downloaded from a url.
    user.xdg.robots.index: "true" if a file is included in indexing, "false" otherwise
    user.xdg.robots.backup: "true" if a file is included in backup, "false" otherwise
    user.xdg.language
    user.xdg.creator
    user.xdg.publisher
    user.xdg.origin.email.subject
    user.xdg.origin.email.from
    user.xdg.origin.email.message-id


[1]: https://www.freedesktop.org/wiki/CommonExtendedAttributes/
Comment 1 tagwerk19 2023-10-02 08:03:43 UTC
(In reply to AvidSeeker from comment #0)
> ... Many programs attach this metadata to downloaded or produced files ...
If you have any examples of code that does this (as extended attributes), it would be nice to try.

You can see what metadata is extracted and indexed (by baloo) if you do a
    balooshow -x oneofyourfiles.odf
(or .doc, .pdf, .mp3, .jpg etc). This is generally embedded metadata though and it will also appear in Dolphin's F11 information panel.

You can search for such "embedded" metadata, for example by:
    baloosearch author:Carroll

Baloo and Dolphin handle a subset of extended attributes: user.xdg.tags, user.xdg.comment and user.baloo.rating and you can search for these by:
    baloosearch tag:Wonderland

It pays to be careful (and do regular backups of your xattr data with getfattr), it's rather too easy to do something to a file and it's read and written back without the xattr. Rotate an image with Gwenview, you'll lose any tags and ratings you might have attached: Bug 431146
Comment 2 tagwerk19 2023-10-02 22:01:53 UTC
Related and maybe worth a reference: Bug 440752