[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: jed/xjed launch script?
Frank v Waveren wrote:
> On Tue, Feb 17, 2004 at 06:53:52PM -0500, Bob Bernstein wrote:
> > Has anyone written a shell script that will query for the presence of
> > X, and if found launch xjed, else launch jed?
> Xjed falls back to using the tty if it can't XOpenDIsplay for me. It
> might be a debian thing, but I don't see anything obvious changing it
> in jed_0.99.16-3.1.diff (which is the patch changing regular jed to
> debian jed).
This works for me too (as I'm using Debian and jed0.99.16 as well) but
before realizing that I had in .bashrc
# if DISPLAY is set, assume X is running
if [ $DISPLAY ] ; then
echo "bashrc: X is running"
export EDITOR=xjed
export BROWSER=konqueror
else
echo "bashrc: X is not running"
export EDITOR=jed
export BROWSER=elinks
fi
together with
alias jed=$EDITOR
it should do the trick...
Günter
--
G.Milde at web.de
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.