ftp://ftp.uni-heidelberg.de/pub/X11/contrib/applications/xscreensaver-1.27.tar.Z
[xscreensaver] / hacks / noseguy.c
index 3a6542c8f3fcbce5a7147ab00f54af5c201a7d13..713ee23821c2db2e52996d436f9a557a65514d80 100644 (file)
@@ -476,7 +476,8 @@ get_words()
            if (! buf[0])
              sprintf (buf, "\"%s\" produced no output!", orig_program);
            else if (!first_time &&
-                    !strcmp (buf, "sh: fortune: not found\n"))
+                    (strstr (buf, ": not found") ||
+                     strstr (buf, ": Not found")))
              switch (random () % 20)
                {
                case 1: strcat (buf, "( Get with the program, bub. )\n");