--- src/wmtaskbar.cc.orig	Fri Apr 27 09:32:22 2001
+++ src/wmtaskbar.cc	Tue May  1 06:15:49 2001
@@ -47,12 +47,18 @@
 YPixmap *windowsPixmap = 0;
 YPixmap *taskbackPixmap = 0;
 
+#ifdef __FreeBSD__
+#define APMDEV "/dev/apm"
+#else
+#define APMDEV "/proc/apm"
+#endif
+
 static void initPixmaps() {
 #ifndef START_PIXMAP
-#define START_PIXMAP "linux.xpm"
+#define START_PIXMAP "bsd-daemon.xpm"
 /*
 #define START_PIXMAP "debian.xpm"
-#define START_PIXMAP "bsd-daemon.xpm"
+#define START_PIXMAP "linux.xpm"
 #define START_PIXMAP "start.xpm"
 #define START_PIXMAP "xfree86os2.xpm"
 */
@@ -240,7 +246,7 @@
     } else
         fClock = 0;
 #ifdef CONFIG_APPLET_APM
-    if (taskBarShowApm && access("/proc/apm", 0) == 0) {
+    if (taskBarShowApm && access(APMDEV, 0) == 0) {
         fApm = new YApm(this);
         if (fApm->height() + ADD1 > ht) ht = fApm->height() + ADD1;
     } else
