7d95ab884a
git-svn-id: svn://localhost/ardour2/trunk@1248 d708f5d6-7413-0410-9779-e7cbd77b26cf
29 lines
687 B
Bash
Executable File
29 lines
687 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Author: Aaron Voisine <aaron@voisine.org>
|
|
|
|
CWD="`dirname \"$0\"`"
|
|
TMP=/tmp/$UID/TemporaryItems
|
|
|
|
ps -wx -ocommand | grep -e '[X]11' > /dev/null
|
|
if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
|
|
echo "rm -f ~/.xinitrc" > ~/.xinitrc
|
|
sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
|
|
fi
|
|
|
|
mkdir -p $TMP
|
|
cp -f "$CWD/bin/getdisplay.sh" $TMP
|
|
rm -f $TMP/display
|
|
open-x11 $TMP/getdisplay.sh || \
|
|
open -a XDarwin $TMP/getdisplay.sh || \
|
|
echo ":0" > $TMP/display
|
|
|
|
while [ "$?" == "0" -a ! -f $TMP/display ]; do sleep 1; done
|
|
export "DISPLAY=`cat $TMP/display`"
|
|
|
|
ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11
|
|
|
|
cd ~/
|
|
shift
|
|
exec "$CWD/bin/exporter" "$*"
|