[gnome-control-center/gnome-3-8] color: gcm_prefs_is_livecd() should be linux-only
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] color: gcm_prefs_is_livecd() should be linux-only
- Date: Thu, 9 May 2013 13:56:09 +0000 (UTC)
commit 92a3889c038d899867683e0c8c2f6449f6d54c10
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Wed May 8 10:54:06 2013 +0200
color: 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 37ac5a3..ccc0552 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1935,6 +1935,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;
@@ -1957,6 +1958,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]