71862247ad
git-svn-id: svn://localhost/ardour2/trunk@644 d708f5d6-7413-0410-9779-e7cbd77b26cf
17 lines
418 B
Bash
Executable File
17 lines
418 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Author: Aaron Voisine <aaron@voisine.org>
|
|
|
|
CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`"
|
|
|
|
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
|
|
|
|
open -a X11 || open -a XDarwin
|
|
|
|
export "FONTCONFIG_PATH=$CWD/etc/fonts"
|
|
exec "$CWD/bin/cache-fonts"
|