Generic people app

Experimenting attributes :

  • Audio files located on BFS here (but in real life, it will be on my NAS, so no BFS)
  • Audio link : derived from audio mime type (ie containing some audio attributes extracted from the exif of the original audio) + new attribute corresponding to the link to the original file
  • Opening attributes via Attrify application : audio mime type attributes + audio link mime type attribute (link only)
    => Once the audio links files are enriched with exif data, the search for attributes can be done with query under Haiku

We can see that “audio-link” inherits from audio (in the tracker and in the filetypes) :

4 Likes

you can definitely have (extended) attributes on most of the common filesystems available on Linux as well as Mac’s HFS Plus. Decompressing with a tool that handles them just might require some work… I don’t remember how I transferred some of my files with attributes intact from Haiku to ZFS a year or two ago but I’m pretty sure it’s possible with some existing tools.

The attributes on other filesystems are not typed, and,more importantly, not indexed. That makes them a lot less useful, since queries will be very slow

1 Like

While it’s of course true they are much more prominent on BeOS/Haiku, my main point was that it does not need to be the case that you lose all attributes when going to a non-BFS filesystem.

In some cases using certain tools they can even be indexed although in userspace instead of at the filesystem level. Limited queries can also be practical with how fast disks can be nowadays even when not using an index (and Haiku’s indexing unfortunately leaves a lot to be desired because BeOS’s did) but I do think extended attributes are sadly underused on systems other than Haiku nowadays.

Maybe call it Object app :wink:

Yes, the attributes are only intended for the Haiku filesystem (bfs) and can only be used there. As soon as you copy the file to another filesystem, the attributes are gone. However, you can simply compress and extract the file with the zip command without losing them. Copying from bfs to bfs is no problem.

However, it’s important to remember that every attribute has a size, which isn’t displayed in the system (or has that changed now?). So if a new application writes new attributes to every file/program, that wouldn’t be nice in my opinion, and if I were building an anti-spyware app, I’d pay close attention to something like that ;-).

There’s also an app you can use to edit attributes. It’s called QuickRes.
I only know the 32-bit version.

Introducing QuickRes
QuickRes: So You Have a Bunch of Resources – Now What Do You Do?

quickres is an old beos application by Dianne Hackborn

I always used this to check when creating my genealogy program myfamily (unfortunately never completed due to missing options in yab and better alternatives)

I wish we had QuickRes for 64bit Haiku.

2 Likes

I don’t know about copy utilities but I believe you should be able to mostly transfer them to other filesystems by enabling xattr support in GNU tar / BSD tar.

Maybe Diane still has the source code and is willing to share it? She’s on Mastodon I believe.

1 Like

Work in progress : “open link” feature.

When a “Media:link” attribute exists on the file, an open button is displayed in order to launch an “open” command on the link.

This is working fine on audio file as per below (located on a NAS versus the “audio-link” file located on the Haiku system):

3 Likes