Re: WPrefs fails to find images in CVS

Antoine Calando <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.user
Message-ID <[email protected]>

Hi,

I wrote a little patch for WPrefs. The version checked out from CVS can't find
its icons : it search in something like .../GNUstep/Applications/WPrefs.app/...
while the installation put them by default in /usr/local/share/WPrefs.

The patch is not very clean since the paths added are hard-coded, but
I don't know how to retrieve the path from the configure script. 

There is also an other problem, WPrefs add the paths /usr/share/WindowMaker/Icons
and .../Pixmaps to the default paths for icons and pixmaps (Search Paths 
Configuration tab), but they're installed in /usr/local/WindowMaker/... !
I didn't find where the paths are set (may be WPrefs/Paths.c ???)

Antoine







===================================================================
RCS file: /cvsroot/wm/WINGs/wapplication.c,v
retrieving revision 1.13
diff -u -r1.13 wapplication.c
--- WINGs/wapplication.c        24 Oct 2004 03:20:29 -0000      1.13
+++ WINGs/wapplication.c        15 Feb 2005 21:46:11 -0000
@@ -147,6 +147,12 @@
             return path;
     }
 
+    path = checkFile("/usr/share", WMApplication.applicationName, ext, resource);
+    if (path) return path;
+
+    path = checkFile("/usr/local/share", WMApplication.applicationName, ext, resource);
+    if (path) return path;
+
     appdir = wmalloc(strlen(WMApplication.applicationName)+20);
     sprintf(appdir, "Applications/%s.app", WMApplication.applicationName);
 
_______________________________________________
INFO: https://windowmaker.org/lists/listinfo/wm-user
ARCHIVE: https://windowmaker.org/lists/archive/wm-user/
FAQ: http://windowmaker.org/faq.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.