On Tue, 5 May 1998, Martin Schulze wrote: > On Tue, May 05, 1998 at 04:48:28PM +0300, Carlos Barros wrote: > > What about trying to connext to X server, and if an error, do it in > > terminal mode. > > Which would result in opening X connections when working on the > console. No, that's not funny, this already happened with urlview > here, not funny to wait for your browser/editor while it runs somewhere > on X. >
Well... if a connection is open, it means that the user has run the program under X or did tell the program to connect to a X server or a stale DISPLAY variable... and if that is not what the user want's is because a user error, or does not like to use it under X even if he is under X... I still dont see your point... ----------- if(XOpenDisplay()) xmode=true else xmode=false; ----------- That is what I propose. Bye Carlos Barros. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]