From kde-core-devel Thu Apr 10 18:34:08 2008 From: Lubos Lunak Date: Thu, 10 Apr 2008 18:34:08 +0000 To: kde-core-devel Subject: Re: Administrator mode in systemsettings Message-Id: <200804102034.08344.l.lunak () suse ! cz> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=120785361609656 On Thursday 10 of April 2008, Oswald Buddenhagen wrote: > On Thu, Apr 10, 2008 at 06:03:39PM +0200, Lubos Lunak wrote: > > How about the attached patch? > > the clock will always be a few seconds later than requested - due to the > password entering latency. one'd have to start the helper in advance and > make it talk with the "master" via a pipe to avoid that. Hmm, right. I wanted to keep it simple, but I guess that won't be possible for this - kdesu doesn't seem to forward stdin/stdout and I don't know what should be the proper way to set up a named pipe to talk to a root helper. > fwiw, the code contains a hwclock call - afaict, this is just bogus. > for example, it does not account for the clock being in gmt/local mode. > this should be definitely left up to the system's shutdown scripts. Fee free to dump it if it's wrong. I just copied the code. -- Lubos Lunak KDE developer -------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org Lihovarska 1060/12 tel: +420 284 028 972 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz