(SOLVED..sort of) : Desktop launcher as root



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 29 Apr 2006 21:24:27 -0400
Frank McCormick <fmccormick@xxxxxxxxxxxx> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 30 Apr 2006 09:01:16 +1000
Peter Garrett <peter.garrett@xxxxxxxxxxxxxxx> wrote:

On Sat, 29 Apr 2006 18:33:40 -0400
Frank McCormick <fmccormick@xxxxxxxxxxxx> wrote:


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!

Try a "normal" launcher with

xterm -e sudo mc

or

gnome-terminal -e "sudo mc"

Gnome-terminal insists on the quotes, for some unfathomable reason. I
guess Gnome just likes to continue a great Unix tradition, by doing
everything slightly, but not completely, differently from every other known
terminal emulator ;-)

The terminal window should pop up with a password prompt, and mc should
start on entry of your password.


Nope. Doesn't work here (on Dapper) two windows pop up but mc never runs. Weird. Tried ticking the run in terminal box, using gnome-terminal and my normal shell rxvt-unicode.

I took Peter Garrets suggestion of a simple "sudo mc"...went into the config editor, changed the default
terminal to rxvt-unicode and it now works, but with a small window which has to be resized. But it works.
Thanks to everyone who offered suggestions.


- --
Cheers

Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEVPJk8Rvr3Tn207ARAqceAJ9FWvHvamndXMlLlFRFyrE7Qu4WtgCfW9Gc
ldYDBNLHlVwB18jKBjC5jt4=
=5FVA
-----END PGP SIGNATURE-----

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: lost my desktop
    ... Frank McCormick wrote: ... Hash: SHA1 ... It seems I can't create any new icons on the desktop either... ...
    (Debian-User)
  • Re: SOLVED Re: CPU time
    ... Hash: SHA1 ... Frank McCormick wrote: ... 25 percent of cpu time when at idle. ...
    (Debian-User)
  • Re: Seg fault
    ... Hash: SHA1 ... Frank McCormick wrote: ... Anders Lagerås wrote: ...
    (Debian-User)
  • Re: Jaunty Update Manager is broken
    ... Hash: SHA1 ... NoOp wrote: ... Terminal to start the Synpatic File Manager and re-load the Update ... Remember that once you've entered your password, sudo, gksu, etc., will ...
    (Ubuntu)
  • Re: (SOLVED..sort of) : Desktop launcher as root
    ... Peter Garrett wrote: ... Frank McCormick wrote: ... terminal to rxvt-unicode and it now works, but with a small window which has to be resized. ...
    (Ubuntu)