[gnome-color-manager] Detect Ubuntu casper based livecd's as well



commit 26c24768e0c40112af0d1c1cfae912868c2bd08a
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date:   Tue Jan 1 22:17:26 2013 +0100

    Detect Ubuntu casper based livecd's as well
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 src/gcm-calibrate-main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-calibrate-main.c b/src/gcm-calibrate-main.c
index c52c2f5..0d90644 100644
--- a/src/gcm-calibrate-main.c
+++ b/src/gcm-calibrate-main.c
@@ -771,7 +771,8 @@ gcm_calibrate_is_livecd (void)
 		g_error_free (error);
 		goto out;
 	}
-	ret = g_strstr_len (data, -1, "liveimg") != NULL;
+	ret = (g_strstr_len (data, -1, "liveimg") != NULL ||
+	       g_strstr_len (data, -1, "casper") != NULL);
 out:
 	g_free (data);
 	return ret;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]