From: Jon Trulson Date: Thu, 12 Jul 2012 21:14:51 +0000 (-0600) Subject: DtSvc/DtUtil1/Saver.c - fix the screen savers. X-Git-Tag: 2.2.0a~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aeaec445eeb0d5433844136c30e1bf67f1fa2c49;p=oweals%2Fcde.git DtSvc/DtUtil1/Saver.c - fix the screen savers. I have no idea how their putenv code can work. Anyway, use code that works on linux now. :) --- diff --git a/cde/lib/DtSvc/DtUtil1/Saver.c b/cde/lib/DtSvc/DtUtil1/Saver.c index 170e4aea..00d277ae 100644 --- a/cde/lib/DtSvc/DtUtil1/Saver.c +++ b/cde/lib/DtSvc/DtUtil1/Saver.c @@ -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(); /*