[gnome-control-center] gcm_prefs_is_livecd() should be linux-only



commit 3db55d68e106b079b8a28a7d3f16ee40ac1a8fb3
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Wed May 8 10:54:06 2013 +0200

    gcm_prefs_is_livecd() should be linux-only
    
    /proc/cmdline only exists on Linux and in this case used to check
    whether we are running out of a LiveCD.
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 panels/color/cc-color-panel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 8990dbb..2f36380 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -2047,6 +2047,7 @@ gcm_prefs_connect_cb (GObject *object,
 static gboolean
 gcm_prefs_is_livecd (void)
 {
+#ifdef __linux__
   gboolean ret = TRUE;
   gchar *data = NULL;
   GError *error = NULL;
@@ -2069,6 +2070,9 @@ gcm_prefs_is_livecd (void)
 out:
   g_free (data);
   return ret;
+#else
+  return FALSE;
+#endif
 }
 
 static void


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