This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/x11-misc/gcolor2/files/modular-rgb.patch
tastytea 492c84f7c6
x11-misc/gcolor2: initial import
Signed-off-by: tastytea <tastytea@tastytea.de>
2022-04-17 08:54:27 +02:00

22 lines
654 B
Diff

--- a/src/callbacks.h
+++ b/src/callbacks.h
@@ -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" \
--- a/src/main.c
+++ b/src/main.c
@@ -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;