From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rex Dieter Subject: Re: CloclApplet in KDE Date: Fri, 6 Jun 2003 11:11:42 -0500 Sender: linux-admin-owner@vger.kernel.org Message-ID: <200306061111.42550.rdieter@math.unl.edu> References: <2DE78F33FFE0D3118C0200508B94F9CA1DA37338@uswaumsx08medge.med.ge.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_+0L4+TWoAGIFaUh" Return-path: In-Reply-To: <2DE78F33FFE0D3118C0200508B94F9CA1DA37338@uswaumsx08medge.med.ge.com> List-Id: To: "Sadanapalli, Pradeep Kumar (MED, TCS)" , linux-admin@vger.kernel.org --Boundary-00=_+0L4+TWoAGIFaUh Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday 06 June 2003 11:00 am, Sadanapalli, Pradeep Kumar (MED, TCS) wrote: > Hi, > I am running RedHat 8.0 and kde 3.1.2 . When I login as a normal user, I > am unable to change the system date. I am trying to do this. I am right > clicking on the clock applet on the panel, and then from the popup menu, > I am clicking on "Adjust Date & Time ..." and nothing comes up. How did you install kde 3.1.2? (ie, where did you get it from)? hint/fyi: KDE built from sources won't work. (-: The RPMS included in rh9 and from both kde-redhat.sf.net and kde.org include a patch (attached) to make the "Adjust time & date" option invoke the redhat-config-date program. -- Rex --Boundary-00=_+0L4+TWoAGIFaUh Content-Type: text/x-diff; charset="iso-8859-1"; name="kdebase-3.1-clock.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kdebase-3.1-clock.patch" --- kdebase-3.1/kicker/applets/clock/clock.cpp.clock 2002-11-20 17:27:29.000000000 -0500 +++ kdebase-3.1/kicker/applets/clock/clock.cpp 2002-11-20 17:27:00.000000000 -0500 @@ -928,11 +928,15 @@ _settings->openPreferences(); break; case 103: - proc << locate("exe", "kdesu"); - proc << "--nonewdcop"; - proc << QString("%1 clock --lang %2") + if ( QFile::exists( locate("exe", "redhat-config-date") ) ) + proc << locate("exe", "redhat-config-date"); + else { + proc << locate("exe", "kdesu"); + proc << "--nonewdcop"; + proc << QString("%1 clock --lang %2") .arg(locate("exe", "kcmshell")) .arg(KGlobal::locale()->language()); + } proc.start(KProcess::DontCare); break; case 104: --Boundary-00=_+0L4+TWoAGIFaUh--