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? >