On Mon, Jan 21, 2008 at 05:54:05PM -0400, Nick Pilon wrote: > I've solved > this by clearing $DISPLAY on login, and I'm pretty sure that this is > all that can be done, since it's indistinguishable from a terminal > with an actual X server running.
well, you could run a program that detect whether X11 is running on the given display and only clear the variable if that's not the case. i don't think DISPLAY should be set if there is no X. in most casesit does not harm though, and i guess apple did it to allow any program to access X11 once it is started (although mostly useful only in the shell) because otherwise you'd have to set the variable yoursef manually. for fish that is not really necesary because thanks to universal variables you can set the DISPLAY for all shells with one command. this should be possible from a script too, so if you add a command to set the variable to the X startup then it will magically appear in all your shells when X is started. greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix offering: programming, training and administration - anywhere in the world -- pike programmer working in new zealand community.gotpike.org unix system- iaeste.(tuwien.ac|or).at open-steam.org administrator caudium.org is.schon.org Martin Bähr http://www.iaeste.or.at/~mbaehr/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
