My original plan on patching glib and then using a hacky solution until the patch was in stable glib is not progressing very well. Upstream has valid concerns about the feasibility of canonically categorizing media. It's probably not impossible, but a very big task.
The alternatives would then be:
1) Implement our own heuristics via *ugly* hacks. Like inferring the type from the icon name (volume.get_icon().to_string())
2) Get the entry under /dev/* and figure out what it is
3) (SCRAPPED) Patch GIO
4) (NEW) Don't store the medium type. Simply the name of the stock icon. That way GAJ can still show dialogs like: "<Image of CD> in order to view resume.pdf please insert 'Backup CD 2010-02-16'"
4) comes with the added cost that we can not sensible log media mount/unmounts in the activity log which is a shame... Comments?
My original plan on patching glib and then using a hacky solution until the patch was in stable glib is not progressing very well. Upstream has valid concerns about the feasibility of canonically categorizing media. It's probably not impossible, but a very big task.
The alternatives would then be:
1) Implement our own heuristics via *ugly* hacks. Like inferring the type from the icon name (volume. get_icon( ).to_string( ))
2) Get the entry under /dev/* and figure out what it is
3) (SCRAPPED) Patch GIO
4) (NEW) Don't store the medium type. Simply the name of the stock icon. That way GAJ can still show dialogs like: "<Image of CD> in order to view resume.pdf please insert 'Backup CD 2010-02-16'"
4) comes with the added cost that we can not sensible log media mount/unmounts in the activity log which is a shame... Comments?