DtSvc/DtUtil1/Saver.c - fix the screen savers.
authorJon Trulson <jon@radscan.com>
Thu, 12 Jul 2012 21:14:51 +0000 (15:14 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 12 Jul 2012 21:14:51 +0000 (15:14 -0600)
I have no idea how their putenv code can work.  Anyway, use code that
works on linux now. :)

cde/lib/DtSvc/DtUtil1/Saver.c

index 170e4aea7daabcd077fa7835c3de4fab41944367..00d277ae40e4d6c40915db95b8ac661d0fde3d78 100644 (file)
@@ -167,8 +167,11 @@ _DtSaverStart(
   */
   if (saver_list.serial == 0)
   {
+#if !defined(linux) && !defined(CSRG_BASED)
+    /* JET - how can this ever work anyway? */
     putenv(envdata);
     envdata[0] = '\0';
+#endif
     xa_saver_register = XInternAtom(display, "_DT_SAVER_REGISTER", False);
   }
 
@@ -210,6 +213,11 @@ _DtSaverStart(
     char *pe = envdata + strlen(envdata);
     sprintf(pe, " %lx", XtWindow(drawArea[i]));
   }
+
+#if defined(linux) || defined(CSRG_BASED)
+  putenv(envdata);
+#endif
+
   _DtSvcProcessUnlock();
 
   /*