Leo doesn't find editor

10 views
Skip to first unread message

Gour

unread,
Nov 8, 2009, 3:18:55 AM11/8/09
to leo-e...@googlegroups.com

Hello,

If I start Leo from the desktop (Run Application in GNOME), Leo cannot
find my $EDITOR setting set to emacsclient and reports:

No editor set!
Please set LEO_EDITOR or EDITOR environment variable,..


Here is the value of $EDITOR:

[gour@gaura-nitai leo-bzr] python
Python 2.6.4 (r264:75706, Oct 27 2009, 06:25:13)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print os.environ['EDITOR']
emacsclient
>>>


If I launch Leo from the (zsh) everything is OK.

What's wrong?


Sincerely,
Gour

--

Gour | Hlapicina, Croatia | GPG key: F96FF5F6
----------------------------------------------------------------

signature.asc

Ville M. Vainio

unread,
Nov 8, 2009, 4:28:52 PM11/8/09
to leo-e...@googlegroups.com
On Sun, Nov 8, 2009 at 10:18 AM, Gour <go...@gour-nitai.com> wrote:

> If I launch Leo from the (zsh) everything is OK.
>
> What's wrong?

You have different env in you zsh shell, as opposed to when launching
from gnome desktop.

See this:

http://groups.google.com/group/leo-editor/browse_thread/thread/f97f4eddd87c434f

--
Ville M. Vainio
http://tinyurl.com/vainio

Gour

unread,
Nov 9, 2009, 1:56:13 AM11/9/09
to leo-e...@googlegroups.com
On Sun, 8 Nov 2009 23:28:52 +0200
>>>>>> "Ville" == "Ville M. Vainio" >>>>>> wrote:

Ville> You have different env in you zsh shell, as opposed to when
Ville> launching from gnome desktop.

Yeah, but then I find the error message "Please set LEO_EDITOR or
EDITOR environment variable" a bit misleading 'cause Leo does not
'read' environment, i.e. one would expect that setting e.g. EDITOR have
effect, but Gnome does not inherit it.

Ville>
Ville> http://groups.google.com/group/leo-editor/browse_thread/thread/f97f4eddd87c434f
Ville>

Thanks.

signature.asc

Ville M. Vainio

unread,
Nov 9, 2009, 4:20:07 AM11/9/09
to leo-e...@googlegroups.com
On Mon, Nov 9, 2009 at 8:56 AM, Gour <go...@gour-nitai.com> wrote:
> On Sun, 8 Nov 2009 23:28:52 +0200

> Yeah, but then I find the error message "Please set LEO_EDITOR or
> EDITOR environment variable" a bit misleading 'cause Leo does not
> 'read' environment, i.e. one would expect that setting e.g. EDITOR have
> effect, but Gnome does not inherit it.

Leo does "read" the environment variable, it's just that gnome session
doesn't necessarily see it.

The gnome-visible env vars are (apparently) set through ~/.gnomerc.

Gour

unread,
Nov 9, 2009, 9:20:01 AM11/9/09
to leo-e...@googlegroups.com
On Mon, 9 Nov 2009 11:20:07 +0200

>>>>>> "Ville" == "Ville M. Vainio" >>>>>> wrote:


Ville> Leo does "read" the environment variable, it's just that gnome
Ville> session doesn't necessarily see it.
Ville>

You're right. I solved the problem by exporting LEO_EDITOR in
/etc/profile - had setting in /etc/zprofile which was some old
Archlinux-ism :-(

signature.asc
Reply all
Reply to author
Forward
0 new messages