aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/computer/ubuntu_flavors.c2
-rw-r--r--pixmaps/distros/xubuntu.svg1
-rw-r--r--shell/report.c4
3 files changed, 5 insertions, 2 deletions
diff --git a/modules/computer/ubuntu_flavors.c b/modules/computer/ubuntu_flavors.c
index d6933604..9bc32d74 100644
--- a/modules/computer/ubuntu_flavors.c
+++ b/modules/computer/ubuntu_flavors.c
@@ -26,7 +26,7 @@
static const UbuntuFlavor ubuntu_flavors[] = {
{ "ubuntu-server", "Vanilla Server", "distros/ubuntu.png", "https://ubuntu.org/" },
{ "ubuntu-desktop", "Ubuntu GNOME", "distros/ubuntu.png", "https://ubuntu.org/" },
- { "xubuntu-desktop", "Xubuntu", "distros/xubuntu.png", "https://xubuntu.org/" },
+ { "xubuntu-desktop", "Xubuntu", "distros/xubuntu.svg", "https://xubuntu.org/" },
{ "kubuntu-desktop", "Kubuntu", "distros/kubuntu.png", "https://kubuntu.org/" },
{ "lubuntu-desktop", "Lubuntu", "distros/lubuntu.png", "https://lubuntu.me/" }, /* formerly or also lubuntu.net? */
{ "ubuntu-mate-desktop", "Ubuntu MATE", "distros/ubuntu-mate.png", "https://ubuntu-mate.org/" },
diff --git a/pixmaps/distros/xubuntu.svg b/pixmaps/distros/xubuntu.svg
new file mode 100644
index 00000000..cce15022
--- /dev/null
+++ b/pixmaps/distros/xubuntu.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><path d="M64 32c0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0c17.673 0 32 14.327 32 32z" fill="#04a"/><g fill="#fff"><path d="M42.475 12.007c-.112.065-.13.099-.1.05-1.087 1.83-1.115 4.245-1.6 6.4a.797.797 0 0 1 0 .05c-.008.032.008.069 0 .1-.236 2.314-.998 4.674-.45 6.9a.797.797 0 0 1 .05.15c.005.016-.005.034 0 .05.008.013-.008.038 0 .05.01.014.04-.013.05 0 .117.16.26.281.35.3.064.013.176.006.4-.15.242-.169.379-.506.45-.95a.797.797 0 0 1 .1-.15.797.797 0 0 1 0-.05.797.797 0 0 1 .05-.15.797.797 0 0 1 .05-.05c.957-3.819 1.605-7.827 1.35-11.75a.983.983 0 0 0-.25-.55 1.569 1.569 0 0 0-.25-.25c-.031-.021.01-.006-.1 0a.797.797 0 0 1-.05 0c-.041.005-.026 0-.05 0zM51.29 13.879c-1.659.806-2.508 2.728-3.65 4.3a.747.747 0 0 1-.05.15.747.747 0 0 1-.05.1c-1.45 2.568-3.299 5.131-3.5 8.1-.002.016 0 .033 0 .05.022.447.278.69.55.75.266.057.759-.095.95-.4a.747.747 0 0 1 .05-.05.747.747 0 0 1 0-.05.747.747 0 0 1 0-.05c2.633-3.619 4.614-7.88 6.25-12.05a.747.747 0 0 1 0-.05c.112-.274.15-.344.05-.55-.03-.061-.34-.27-.5-.25-.027.011-.075-.013-.1 0z"/><path d="M25.482 15.073c-.267.05-.665.289-.95.4-1.005.38-1.56 1.243-1.8 2.25-.244 1.03-.162 2.177 0 3.35.163 1.17.396 2.378.65 3.3.219.797.375 1.185.45 1.45v.2c0 .087-.041.08-.1.15-.032.017.032.1 0 .1a.428.428 0 0 1-.25.1c-.177.01-.316-.054-.5-.1-.125-.03-.287-.13-.25-.1-.058-.035-.162-.04-.2-.1 0 .023.035.022 0-.05-.04-.076-.085-.267-.15-.4-.142-.304-.254-.655-.45-1.1a39.952 39.952 0 0 0-1.45-3c-.56-1.027-1.219-1.958-1.95-2.6-.365-.321-.815-.643-1.25-.75-.419-.105-.916-.016-1.35.2-1.12.62-1.753 1.638-2 2.7-.247 1.077-.13 2.318.05 3.4.184 1.079.467 1.969.65 2.7.079.308.174.595.2.75 0 .152-.062.551-.1.7-.189.654-.648 1.75-.65 1.75 0 0-8.724 23.172 10 21.55.155-.012.505-.1.65-.1 3.678-.74 7.157-1.853 10.25-3.1.608-.292 1.405-.581 2.3-1 1.79-.84 4.04-1.914 6.2-3.1 2.162-1.188 4.168-2.453 5.7-3.8 1.536-1.35 2.656-2.828 2.45-4.3-.325-2.374-1.902-4.138-4-5.5-2.105-1.368-4.731-2.312-7.35-3-2.617-.689-5.158-1.248-7.1-1.55-.97-.152-1.88-.196-2.45-.3-.168-.03-.258-.071-.35-.1-.049-.007-.053-.021-.1-.05-.058-.035-.165-.04-.2-.1-.032-.058 0-.133 0-.2v-1.55c-.032-1.197-.102-2.777-.35-4.25-.25-1.48-.636-2.894-1.45-3.85a2.835 2.835 0 0 0-2-1c-.25-.03-.53-.05-.8 0z"/></g></svg> \ No newline at end of file
diff --git a/shell/report.c b/shell/report.c
index 429d0746..89fcc4a3 100644
--- a/shell/report.c
+++ b/shell/report.c
@@ -107,7 +107,9 @@ gchar *make_icon_css(const gchar *file) {
gsize length = 0;
if ( g_file_get_contents(path, &contents, &length, NULL) ) {
gchar *css_class = icon_name_css_id(file);
- const char ctype[] = "image/png";
+ const char *ctype = "image/png";
+ if (g_str_has_suffix(file, ".svg") )
+ ctype = "image/svg+xml";
gchar *b64data = g_base64_encode(contents, length);
ret = g_strdup_printf(
".%s\n"