2019-01-03 22:50:55 +00:00
#!/bin/sh
cd " $( dirname " $0 " ) "
if [ " $( ps -C "mono" -o "cmd" --no-headers | grep "EmuHawk.exe" ) " ] ; then
echo "EmuHawk is already running, exiting..."
exit 0
fi
libpath = ""
if [ " $( command -v lsb_release) " ] ; then
case " $( lsb_release -i | cut -c17- | tr -d "\n" ) " in
"Arch" | "ManjaroLinux" ) libpath = "/usr/lib/wine" ; ;
2019-07-02 06:34:37 +00:00
"Debian" | "LinuxMint" | "Ubuntu" ) libpath = "/usr/lib/x86_64-linux-gnu/wine" ; export MONO_WINFORMS_XIM_STYLE = disabled; ; # see https://bugzilla.xamarin.com/show_bug.cgi?id=28047#c9
2019-01-03 22:50:55 +00:00
esac
2019-05-18 04:09:50 +00:00
else
printf "Distro does not provide LSB release info API! (You've met with a terrible fate, haven't you?)\n"
2019-01-03 22:50:55 +00:00
fi
if [ -z " $libpath " ] ; then
printf "%s\n" "Unknown distro, assuming WINE library location is /usr/lib/wine..."
libpath = "/usr/lib/wine"
fi
2019-05-18 04:09:50 +00:00
LD_LIBRARY_PATH = " $libpath " mono ./EmuHawk.exe >EmuHawkMono_laststdout.txt