Re: Desktop launcher as root



-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Peter Garrett wrote the following on 30.04.2006 04:49:

<snip>

sudo update-alternatives --config editor
mc is aliased to `PAGER=/usr/share/vim/vim64/macros/less.sh EDITOR=nano
HISTFILE=~/.mc/mc_history mc'


Umm - I thnk that sailed right over my head...
I just installed mc on my laptop, and

sudo update-alternatives --config editor

showed mcedit as the selected editor. I knew of this because the same
thing happened on my other machines when I installed mc on them.

For example, suddenly "visudo" brought up "mcedit" instead of
"nano" ( notice that one would naturally expect visudo to bring up vi /
vim - but by default on Ubuntu it doesn't, since the alternative for
"editor" is nano by default, which makes for interesting experiences on IRC
help channels...

me: OK , hit escape
newperson: Huh?
me: to save the file and quit the editor type :wq!
newperson: that doesn't work either - what are you smoking?

*gg*

And so on...

Peter

I just wanted to point out you do not have to set it systemwide only to
make it work within mc.

bye Thilo
- --
i am on Ubuntu 2.6 KDE
- - some friend of mine

gpg key: Ox4A411E09

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEVCpXgkdHiUpBHgkRA0NjAKDgn4a3bm7TLAP992W9aNqhOkkLLgCeMnIo
dqwz8ehCq7hYlRYxbv2r6+o=
=qRF0
-----END PGP SIGNATURE-----


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



Relevant Pages

  • Re: text editor for web development
    ... I am probably going to be switching from an Apple system to ... won't work on Ubuntu. ... Does anyone here use a text editor for serious web ... It is almost worth installing a version of Windows (and running it ...
    (Ubuntu)
  • Re: Loading programs from Synaptic
    ... To get around this, you can always run Menu Editor, and manually add ... Copy and paste the command line for the new program from the ... menuitems.txt file, into the "Command" text entry box, then if an icon ... read here as well to familiarize yourself with the menu system in Ubuntu. ...
    (Ubuntu)
  • Re: How do I change Grub settings in Ubuntu 8.04
    ... Then I got a second hard drive installed and put Ubuntu 8.04 on it. ... Now when I boot up it's default is Linux. ... to an editor that works. ...
    (alt.linux)
  • Re: How do I change Grub settings in Ubuntu 8.04
    ... Then I got a second hard drive installed and put Ubuntu 8.04 on it. ... using the command line interface but I don't really know what I'm doing.. ... to an editor that works. ...
    (alt.linux)
  • Re: [opensuse] How to configure the text displayed in the StarWars screen saver?
    ... editor and came up with this. ... developers of this masochistic editor were smoking when they sat down ... dumb terminals connected at 300bps or less where terse keyboard commands ... Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org ...
    (SuSE)