On 19:39  07-01, Tuomo Valkonen wrote:
> > I tried
> >     mod_query.message(_, os.get_env('PATH'))
> > but I got an error :
> >     attempt to call field 'get_env' (a nil value)
> 
> It's getenv. (There's also a shorter way to display values
> from queries, as the Lua print function is overridden in them:
> print(os.getenv("PATH")) )
> 
> > I launch ion with exec ion3 in my .xsession and gdm.
> 
> Then set PATH in your .xsession before launching Ion.
> setenv is also provided by the Lua posix module, but
> it's better to set the PATH by loading some .bashenv or
> something from .xsession. 
> 
> (Actually, it's all a big mess, because the crappy display 
> managers don't load the shells' environment from anywhere, 
> but you should do redundant work by defining the stuff in 
> .xsession again. But .xsession is also sometimes loaded by
> stock xinitrc these days, and in that case then you shouldn't 
> load the environment definitions again.)

Thanks, it works very well. If there's a better way than using gdm, I am
interested (I don't like gnome very much).

Reply via email to