Determine session type?

Jan Danielsson <[email protected]>
Newsgroups gmane.os.netbsd.help
Organization La cosa nostra
Message-ID <[email protected]>
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?

-- 
Kind regards,
Jan Danielsson
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)

iD8DBQFFbv/Zbgs4ia4rq9IRCtAJAJ9mnf312eFvUgSA4euI+Fy8kzK9cQCeIn1d
+A40xFCAPD2W2r4M3B6AFOw=
=tkvN
-----END PGP SIGNATURE-----
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.