On Thu, 2007-10-11 at 03:57 -0700, Jake Conk wrote:
> Hello,
>
> i want to add a program to my desktop panel but it needs to be ran as
> root when clicked... How do make a it prompt for my root password when
> I click on that application from a panel? I tried putting sudo in
> front of it in hopes a prompt of some sort will come up but no luck.
>
> Regards,
> - Jake
>
> PS. If it matters, I'm running Xfce but I have Gnome installed if I
> need something from gnome.
Or KDE? This may run outside KDE. I use something like this:
LAUNCH_CMD="MyCommand"
if test `id -u` -eq 0 ; then
exec $LAUNCH_CMD 2> /dev/null
else
kdesu -n -c "$LAUNCH_CMD" 2> /dev/null
fi
I send errors to /dev/null for the heck of it. Remove as needed.
--
Roger Oberholtzer
OPQ Systems / Ramböll RST
Ramböll Sverige AB
Kapellgränd 7
P.O. Box 4205
SE-102 65 Stockholm, Sweden
Tel: Int +46 8-615 60 20
Mobl: Int +46 70-815 1696
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]