[gnome-color-manager] add gnome-desktop path as fallback for pci.ids



commit 0c899e6b0fcfb133ce765b2effb565549b6522e4
Author: Frederic Crozat <fcrozat mandriva com>
Date:   Fri Jan 8 18:23:11 2010 +0100

    add gnome-desktop path as fallback for pci.ids

 src/gcm-tables.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-tables.c b/src/gcm-tables.c
index f38de10..f4df0ed 100644
--- a/src/gcm-tables.c
+++ b/src/gcm-tables.c
@@ -206,6 +206,13 @@ gcm_tables_set_default_data_dir (GcmTables *tables)
 		goto out;
 	}
 
+	/* fallback from gnome-desktop */
+	ret = g_file_test ("/usr/share/libgnome-desktop/pnp.ids", G_FILE_TEST_EXISTS);
+	if (ret) {
+		tables->priv->data_dir = g_strdup ("/usr/share/libgnome-desktop");
+		goto out;
+	}
+
 	/* need to install package? */
 	egg_warning ("cannot find pnp.ids");
 out:



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