GNOME Bugzilla – Bug 519577
put xattrs on files saved by g-u-s
Last modified: 2019-03-20 10:37:27 UTC
See bug 519442 comment 3 for details.
From bug 519442 comment 3: > Also, would be nice for the process (either WebDAV or ObexPush) > receiving the file to cram some xattrs into the file.. then we > could write a nice Nautilus extension to show where the file came > from; e.g. "Sent from 'Bastien's Nokia 6230'" or "Sent from > 'david'z Macbook Pro' while connected to rh-wireless". Or something. Ideally we would standardize on namespace for the xattrs on xdg list. It would include a 'download-progress' attribute that is updated as the download progresses (xattrs as IPC - which is fine; don't use D-Bus here; that would be overengineering). Browser vendors such as Mozilla could also use this.
We'd need to write an Apache module to be able to save those attributes. There's already been some discussion on the xattr: http://www.freedesktop.org/wiki/CommonExtendedAttributes
Wouldn't be better if a library was written instead of writing gnome-user-share support for xattr, so other applications can link to the library and get any attributes stored by other applications. It could check if xattr is enabled, and if not store attributes in files or some sort of database.
Except the library would contain 3 lines of code to set the xattrs on the file. A library is certainly more than overkill, gvfs can already set xattrs without any other help.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-user-share/issues/10.