-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use FreeBSD extattrs to store file association information #3
Comments
nephele on IRC suggests:
|
Regarding (2) maybe we can set key This will break when This needs more thought. Regarding (1) nephele on IRC suggests:
For "look up" we might still need a (sqlite)? database. On the Mac, Launch Services holds information about file types and the applications that should be used to open them in a database stored at It could hold an ordered list of applications that the user would like to use, if the drive is unmounted prompt them to select the 2nd, or 3rd entry from your list or so. We could even prompt the user "Please insert disk XYZ that contains LibreOffice 3 to open this.doc"... similar to what the Classic Mac could do. An example of a Haiku sniffer rule: There is probably much more to learn from Haiku in this regard: |
|
This can even be done for multiple files at once:
|
So in a nutshell, extended attributes allow "additional labels to be associated with a file or directory". Like which application to open a document with! |
Usage example for how to use this programmatically in a "cross-platform" way: https://github.com/KDE/kfilemetadata/blob/master/src/xattr_p.h Looks like it could work on Linux similarly. To be investigated. |
It's beginning to happen. Current thinking: |
Investigate FreeBSD xattrs to store file association information.
Especially how Haiku uses them (hybrid with resources).
Use case:
https://www.freebsd.org/cgi/man.cgi?query=getextattr&sektion=8&apropos=0&manpath=FreeBSD+11.2-RELEASE
The text was updated successfully, but these errors were encountered: