On Wed, 7 Jan 2009 21:58:52 +0100 Colin Cartade <[email protected]> 
wrote:
> 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).

Why don't you just login on a text console and run startx?

I also have the following code in my .bash_profile, which automatically
starts X, when I log in from the first text console:

if [ "$(tty)" = "/dev/tty1" -o "$(tty)" = "/dev/vc/1" ] ; then
        startx
fi

This way I don't need a display manager and still have the only
functionality from them I used (startup of the X session on login).

If you still want a graphical display manager, you could try slim[1].
It is much lighter.

[1] http://slim.berlios.de/

Reply via email to