Subject: wm/windowmaker and WPrefs
To: None <>
From: Matthew Luckie <>
List: tech-pkg
Date: 09/17/2005 10:28:38

On a fresh install of WindowMaker, the WPrefs application does not
work.  This is for two reasons.  The first is that the menu item
for the preferences utility points to WPrefs in the wrong location
(/usr/pkg/GNUstep/Applications/ instead of
 /usr/pkg/bin/WPrefs where it is installed).

This is easily fixed with a small patch to the package's makefile:

[mjl@rayon windowmaker]$ cvs diff -u Makefile 
Index: Makefile
RCS file: /cvsroot/pkgsrc/wm/windowmaker/Makefile,v
retrieving revision 1.55
diff -u -r1.55 Makefile
--- Makefile    9 Jul 2005 14:57:08 -0000       1.55
+++ Makefile    16 Sep 2005 22:10:07 -0000
@@ -66,11 +66,18 @@
        cd ${WRKSRC} && \
        for f in WINGs/wapplication.c WindowMaker/Defaults/ \
-      WindowMaker/menu* WindowMaker/plmenu*; do \
-               ${SED} "s|/usr/local|${PREFIX}|g" $$f > $$ && \
+               WindowMaker/menu* WindowMaker/plmenu*; do \
+               ${SED} -e "s|/usr/local|${PREFIX}|g" \
+                      -e "s|GNUstep/Applications/|bin|g" \
+                      $$f > $$ && \
                ${MV} $$ $$f; \

However, WPrefs still does not quite work correctly.  The pixmaps
which make up the top toolbar are not found, as
WMPathForResourceOfType does not look in /usr/pkg/share/WPrefs where
the resources are.  This function will not find this directory without
being changed.

Alternatively, we could configure windowmaker with


which would then install WPrefs into


which would then not require the Makefile hack above, or
WMPathForResourceOfType to be altered.

I'm tempted to suggest that the configure option is the right
way to go, although it will put the WPrefs app in a different
location for anyone who had got their text editor out to
edit their menu by hand.