Subject: Re: Determine session type?
To: Jan Danielsson <jan.m.danielsson@gmail.com>
From: Johnny Billquist <bqt@softjar.se>
List: netbsd-help
Date: 11/30/2006 17:30:48
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?
>