#!/bin/sh # Special code for text editors used by bioLegato and scripts called by bioLegato # Nedit crashes in some Linux systems due to libraries set in BIRCHLIBS. # nedit_wrapper unsets LD_LIBRARY_PATH before calling nedit. # gedit opens all files in a single window. gedit_wrapper.sh forces # gedit to open each file in different window. # choose_edit_wrapper.sh returns the name of the wrapper to use # for each editor, or just returns GDE_TEXTEDIT if there is no # wrapper. GDE_TEXTEDIT=`choose_edit_wrapper.sh` export GDE_TEXTEDIT BIOLEGATO_HOME=$BIRCH/java/bioLegato GDE_HELP_DIR=$MGDE_HELP_DIR export GDE_HELP_DIR # In the interim, until biolegato can completely replace GDE # we need a way to get gde menu items, used from biolegato, # to call biolegato, when # it would normally be calling GDE. # The gde script will call biolegato, rather than gde, if # BIOLEGATO_ON=1 BIOLEGATO_ON=1; export BIOLEGATO_ON java -jar $BIOLEGATO_HOME/biolegato.jar $* BIOLEGATO_ON=0; export BIOLEGATO_ON