[kde-freebsd] KDE .desktop files
Andy Fawcett
andy at athame.co.uk
Sun May 4 12:22:04 CEST 2008
On Saturday 03 May 2008 17:19:49 Jim Stapleton wrote:
> I appologize if this is the wrong place, but it seems specific to KDE.
> I didn't know if I should use this, or a KDE specific forum.
>
> I have a script file I want to run, that needs administrative
> privleges. I currently have it as an executable file with just a
> #!/bin/sh at the first line, and then the command later. The problem
> is:
> #!/bin/sh
> mycommand
> doesn't work because it's running as me, not root.
> #!/bin/sh
> sudo mycommand
> also doesn't work - I don't get a password prompt. I didn't see
> anything in the documentation I found for a 'sudo' or 'su' mode in a
> .desktop file. Any suggestions how to get this to work? I'd just like
> to be able to double-click the icon on my desktop, enter the password
> in some form of popup, and go from there.
Try "kdesu mycommand", that should do it for you.
--
Andy Fawcett | andy at athame.co.uk
| tap at kde.org
"In an open world without walls and fences, | tap at lspace.org
we wouldn't need Windows and Gates." -- anon | tap at fruitsalad.org
More information about the kde-freebsd
mailing list