diff options
-rw-r--r-- | includes/computer.h | 2 | ||||
-rw-r--r-- | modules/computer/os.c | 8 | ||||
-rw-r--r-- | shell/shell.c | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/includes/computer.h b/includes/computer.h index 451cd0ce..94e8a09d 100644 --- a/includes/computer.h +++ b/includes/computer.h @@ -44,6 +44,8 @@ static struct { { DB_PREFIX "sun-release", "sun" }, { DB_PREFIX "zenwalk-version", "zen" }, { DB_PREFIX "DISTRO_SPECS", "ppy" }, + { DB_PREFIX "puppyversion", "ppy" }, + { DB_PREFIX "fatdog-version", "fatdog" }, { DB_PREFIX "distro-release", "fl" }, { DB_PREFIX "vine-release", "vine" }, { DB_PREFIX "PartedMagic-version", "pmag" }, diff --git a/modules/computer/os.c b/modules/computer/os.c index b9d8d6f9..39d0e020 100644 --- a/modules/computer/os.c +++ b/modules/computer/os.c @@ -202,6 +202,14 @@ computer_get_os(void) g_free(os->distro); os->distro = tmp; } + + if (g_str_equal(distro_db[i].codename, "fatdog")) { + gchar *tmp; + tmp = g_strdup_printf("Fatdog64 [%.10s]", os->distro); + g_free(os->distro); + os->distro = tmp; + } + os->distrocode = g_strdup(distro_db[i].codename); break; diff --git a/shell/shell.c b/shell/shell.c index 0f45d227..551f4a7d 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -1640,7 +1640,7 @@ static void shell_summary_clear(ShellSummary *summary) g_slist_free(summary->items); summary->items = NULL; - gtk_widget_destroy(summary->header); + if (summary->header) gtk_widget_destroy(summary->header); summary->header = NULL; } static void shell_summary_create_header(ShellSummary *summary, |