Re: path, alias with F3

Tuomo Valkonen <[email protected]>
Newsgroups gmane.comp.window-managers.ion.general
Message-ID <[email protected]>
On 2009-01-07, Colin Cartade <[email protected]> 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.)

-- 
In 1988, automated information processing, ATK (automaattinen
tietojenkäsittely), was a budding new field.
By 2008, it has become known as IT, information technology, 
manually operated by human slaves.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.