kubuntu-kde3.5-users@lists.pearsoncomputing.net

Message: previous - next
Month: April 2009

Re: [kubuntu-kde3.5-users] "Actions --> Edit as Root" does not work

From: Gerhard Zintel <gerhard.zintel@...>
Date: Thu, 30 Apr 2009 11:58:02 +0200
On Wednesday 29 April 2009, kb9vqf@... wrote:
> > On Wednesday 29 April 2009, kb9vqf@... wrote:
> >> > On Tuesday 28 April 2009, Gerhard Zintel wrote:
> >> >> I tried to edit a text file as root by using the right mouse button
> >>
> >> menu
> >>
> >> >> Actions --> Edit as Root item. I am asked for my password afterwords
> >>
> >> a
> >>
> >> >> pop-up with title "Error - KDE Sudo" tells me: "Command not found!".
> >> >> Nothing more happens.
> >> >
> >> > Answering to my own posting: I realized that the path to the kde-3
> >> > executables
> >> > is set for a normal user but not for Root. I found the File
> >>
> >> responsible
> >>
> >> > for
> >> > the "Edit as Root" behaviour, it's
> >> > /opt/kde3/share/apps/konqueror/servicemenus/edit-as-root.desktop
> >> > As a work around I changed the line
> >> >   Exec=kdesu "kwrite" "%U"
> >> > into
> >> >   Exec=kdesu "/opt/kde3/bin/kwrite" "%U"
> >> >
> >> > That's surely not the correct way but as for now it works for me.
> >> >
> >> > Gerhard
> >>
> >> Hi Gerhard,
> >>
> >> Do you have sudo-kde3 installed?  It has /opt/kde3/bin added to the
> >> RPATH
> >> (root PATH variable) so that this sort of thing does not happen.
> >>
> >> Tim
> >
> > Hi Tim,
> >
> > I just realized that I have installed both, kdesudo-kde3 and kdesudo. I
> > don't
> > know how this happens. The same is for konsole and konsole-kde3. Might it
> > be
> > that with default Ubuntu Jaunty install those packages are installed by
> > default?
> >
> > By deinstallation of kdesudo the two packages update-manager-kde and
> > update-notifier-kde are deinstalled. Is there a replacement in KDE3?
> >
> > After deinstallation of kdesudo I changed the file edit-as-root.desktop
> > to it's original state but now I have the same problem like before: 
> > "Command not found!"
> >
> > Thank you
> > Gerhard
>
> Hi Gerhard,
>
> I was talking about sudo-kde3, not kdesudo-kde3.  It's a special sudo
> recompile with the RPATH fixed for KDE3 apps.
>
> Sorry for the confusion!
>
> Tim

I've just done it and it fixes the problem.

Thank U
Gerhard