Desktop launcher as root

Michael V. De Palatis mdepalatis at mail.utexas.edu
Sat Apr 29 22:42:05 UTC 2006


On Sat, Apr 29, 2006 at 06:33:40PM -0400, Frank McCormick wrote:
> Hello all
> 
>    I've been trying unsucessfully to create a desktop launcher for
>    midnight commander but as root. I've tried gksu, gksudo, sudo,
>    su, and gksuexec. I guess the catch is mc has to be run in a
>    terminal as root. Nothing I have tried works. Got any
>    suggestions, I must be missing something obvious!

I'm not sure what terminal you use, but say you use xterm, for sake of
argument. The appropriate command could then be

gksudo 'xterm -e mc'

The -e switch tells xterm "execute the next command." Every terminal
has some similar command, and I think it's -x in gnome-terminal.

Mike




More information about the ubuntu-users mailing list