From aeaec445eeb0d5433844136c30e1bf67f1fa2c49 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Thu, 12 Jul 2012 15:14:51 -0600 Subject: [PATCH] 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. :) --- cde/lib/DtSvc/DtUtil1/Saver.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); /* -- 2.25.1