Follow

I think a :budgie: flew through the window and hacked my computer while I was AFK. Here's a screenshot showing mimetype-based icons being used, as well as leveraging Pixbuf loading to show thumbnails of images. Almost feature complete, with an intentional limited scope of course.

Previously, GLib FileInfo would report a ThemedIcon that typically ended up being text/plain, which is pretty useless for most files, so I added a bit of logic to prepend a preferred mimetype image name format like "image-svg-xml" instead of "image/svg+xml".

Show thread

Discovered some weird quirky behaviour when doing mount-related testing too. GNOME Disks will dismount a disk when you're doing something basic like volume renaming, which isn't necessary at all. GParted didn't do it, so Disks is just dumb and not something I'll try to handle.

Show thread

Attempting to remount doesn't work either since the Mount just isn't there anymore, can't fetch its Drive/Volume either. So solution is just to handle renames when I can, give up otherwise. Worse case is you have to remount it yourself, which you're probably going to do anyways.

Show thread

Biggest hangup at the moment is this desktop implementation is too fast. We're able to generate an item before the file seems to be done syncing / when GLib is aware of its proper mimetype, so sometimes it fails to immediately generate the appropriate thumbnail (e.g. for images).

Show thread

Once that is fixed, it's basically just a matter of fixing the lack of a cursor change over items and maybe adding an unmount option on right click of a mount (kinda iffy on that one) or some other right click on background options.

Show thread
Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.