/usr/share/GNUstep/emacs.app/emacs is in gworkspace-apps-wrappers 0.9.4-1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/sh
# Usage: emacs [ -GSFilePath file ]
# simple GNUstep launch script for emacs/xemacs
#
EMACS=emacs
GNUCLIENT=gnuclient
#
#--FUNCTIONS
#
usage()
{
echo Usage: `basename $0` '[ -GSFilePath file ]'
exit 2
}
#-- MAIN
#
# -- establish name of file to be opened
#
if [ $# -eq 2 ] ; then
if [ "$1" = "-GSFilePath" ] ; then
file="$2"
else
usage
fi
elif [ $# -eq 0 ] ; then
file=
else
usage
fi
# -- check if gnuserv (emacs remote file opener)
# -- is running
ps -Ac | fgrep -q gnuserv
if [ $? -eq 0 ] ; then
if [ -z "$file" ] ; then file='*UNTITLED*' ; fi
$GNUCLIENT "$file" &
else
$EMACS "$file" &
fi
|