GNOME Bugzilla – Bug 638873
Please support libkibi
Last modified: 2011-01-24 15:55:19 UTC
Created attachment 177710 [details] [review] add-libkibi-support-to-nautilus.patch Please add support for libkibi [1] (patch attached). libkibi is designed as replacement for g_format_size_for_display. It allows the user to select the preferred unit and implements Ubuntu's units policy [2]. [1] https://launchpad.net/libkibi [2] https://wiki.ubuntu.com/UnitsPolicy
Created attachment 177751 [details] [review] add-libkibi-support-to-nautilus-v2.patch Updated patch attached.
Maybe this is a chicken and egg question, but which apps/distributions use or plan to use/ship libkibi?
I plan to convert as many apps to use libkibi in Ubuntu 11.04, starting with brasero, nautilus, gnome-system-monitor, transmission, ... Non-glib C programs can use this library too (e.g. dvdbackup will use it).
Hi Benjamin, thanks for your patch. The unit used for displaying file sizes have always been a heated topic for discussion; see e.g. [1] and [2]. The thread at [1] is particularly important for this matter, as it suggests something like what you're doing here should be provided by GLib itself. I don't think using a separate library to configure that is worth the effort, and it causes fragmentation of our stack, so I am closing this as WONTFIX. If a proper solution is implemented in GLib, then we can discuss whether the whole desktop should use one unit or the other, and stick to that. [1] http://mail.gnome.org/archives/gtk-devel-list/2007-December/msg00237.html [2] http://mail.gnome.org/archives/nautilus-list/2008-February/msg00008.html
I opened bug 640432 asking if adding libkibi's functionality to glib has a chance of being accepted before wasting my time with writing a patch that will be thrown away.