Re: Determine session type?

Johnny Billquist <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
Just check if the DISPLAY variable is set?

	Johnny

Jan Danielsson wrote:
> Hello,
> 
>    I have a script which I use to edit encrypted files. It simply
> decrypts the file onto /tmp/, starts "vi" against the decrypted file,
> then - when I quit the editor - it encrypts the file again.
> 
>    But I'd like it to start "nedit" instead *if* I'm running under X. I
> assume this is possible? If so -- how?
>
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.