summaryrefslogtreecommitdiffstats
path: root/misc/gcolor2/rgb.patch
blob: 60c2830515af0d269184b820dfddb83bc786f491 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -Naur gcolor2-0.4.orig/src/callbacks.h gcolor2-0.4/src/callbacks.h
--- gcolor2-0.4.orig/src/callbacks.h	2005-07-11 19:18:59.000000000 -0400
+++ gcolor2-0.4/src/callbacks.h	2008-03-11 03:59:49.000000000 -0400
@@ -12,6 +12,7 @@
 #define SYSTEM_FILE_2      "/usr/lib/X11/rgb.txt"
 #define SYSTEM_FILE_3      "/etc/X11/rgb.txt"
 #define SYSTEM_FILE_4      "/usr/openwin/lib/X11/rgb.txt"
+#define SYSTEM_FILE_5      "/usr/share/X11/rgb.txt"
 
 /* about dialog text */
 #define ABOUT_CREDITS_TEXT "Developer:\n" \
diff -Naur gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
--- gcolor2-0.4.orig/src/main.c	2005-07-11 10:55:49.000000000 -0400
+++ gcolor2-0.4/src/main.c	2008-03-11 04:00:12.000000000 -0400
@@ -36,6 +36,8 @@
 		sys_filename = SYSTEM_FILE_3;
 	else if (g_file_test (SYSTEM_FILE_4, G_FILE_TEST_EXISTS))
 		sys_filename = SYSTEM_FILE_4;
+	else if (g_file_test (SYSTEM_FILE_5, G_FILE_TEST_EXISTS))
+		sys_filename = SYSTEM_FILE_5;
 	else
 		return FALSE;
 	return TRUE;