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
----------------------------------------------------------------
> 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
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.
> 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.
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 :-(