static char *icon_fedora (guestfs_h *g, struct inspect_fs *fs, size_t *size_r);
static char *icon_rhel (guestfs_h *g, struct inspect_fs *fs, size_t *size_r);
static char *icon_debian (guestfs_h *g, struct inspect_fs *fs, size_t *size_r);
+static char *icon_ubuntu (guestfs_h *g, struct inspect_fs *fs, size_t *size_r);
static char *icon_mageia (guestfs_h *g, struct inspect_fs *fs, size_t *size_r);
static char *icon_windows (guestfs_h *g, struct inspect_fs *fs, size_t *size_r);
r = icon_debian (g, fs, &size);
break;
+ case OS_DISTRO_UBUNTU:
+ r = icon_ubuntu (g, fs, &size);
+ break;
+
case OS_DISTRO_MAGEIA:
r = icon_mageia (g, fs, &size);
break;
case OS_DISTRO_PARDUS:
case OS_DISTRO_SLACKWARE:
case OS_DISTRO_TTYLINUX:
- case OS_DISTRO_UBUNTU:
case OS_DISTRO_WINDOWS:
case OS_DISTRO_UNKNOWN:
default: ;
return get_png (g, fs, SHADOWMAN_ICON, size_r, max_size);
}
-/* NB: I've not located an Ubuntu logo yet. */
#define DEBIAN_ICON "/usr/share/pixmaps/debian-logo.png"
static char *
return get_png (g, fs, DEBIAN_ICON, size_r, 2048);
}
+#define UBUNTU_ICON "/usr/share/icons/gnome/24x24/places/ubuntu-logo.png"
+
+static char *
+icon_ubuntu (guestfs_h *g, struct inspect_fs *fs, size_t *size_r)
+{
+ return get_png (g, fs, UBUNTU_ICON, size_r, 2048);
+}
+
#define MAGEIA_ICON "/usr/share/icons/mageia.png"
static char *