Hi,
Short intro: I'm the Fedora imlib2 package maintainer.
Most modern Linux distro's now have rgb.txt as
/ust/share/X11/rgb.txt
The attached patch fixes loading xpm files on these distro's.
Regards,
Hans
p.s.
Please keep me CC-ed, I'm not on the list.
diff -up imlib2-1.4.1/src/modules/loaders/loader_xpm.c~
imlib2-1.4.1/src/modules/loaders/loader_xpm.c
--- imlib2-1.4.1/src/modules/loaders/loader_xpm.c~ 2008-06-12
20:45:41.000000000 +0200
+++ imlib2-1.4.1/src/modules/loaders/loader_xpm.c 2008-06-12
20:45:41.000000000 +0200
@@ -52,6 +52,8 @@ xpm_parse_color(char *color, int *r, int
/* look in rgb txt database */
if (!rgb_txt)
#ifndef __EMX__
+ rgb_txt = fopen("/usr/share/X11/rgb.txt", "r");
+ if (!rgb_txt)
rgb_txt = fopen("/usr/X11R6/lib/X11/rgb.txt", "r");
if (!rgb_txt)
rgb_txt = fopen("/usr/openwin/lib/X11/rgb.txt", "r");
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel