#!/bin/sh
# This file configures the Emacs ROX application wrapper to run either
# run as an emacs client or to just run another instance of emacs each time
# it's started

# When USE_CLIENT is set to a value, the first time a file is dragged onto
# the icon, a new instance of emacs is started in server mode
# subsequent dragging will cause a copy of emacsclient to be run which will
# load the dragged file into the existing instance of emacs.

# When USE_CLIENT is unset, dragging a file onto the icon starts a new
# instance of emacs with that file open

# Clicking the icon ALWAYS starts a new instance of emacs, regardless of the
# USE_CLIENT setting
USE_CLIENT=YES
#unset USE_CLIENT
if type -p gnuclient > /dev/null 2>&1; then
    USE_GNUCLIENT=YES
fi
