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: Tue, 28 Apr 2009 23:31:32 +0200
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