From c66ea9f7405d07d5c5cd115490a15331780be019 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 24 Sep 2014 09:01:59 +0200 Subject: [PATCH] linux: openSuse don't follow the FHS, so manually pick the lib path --- bin/launch_pcsx2_linux.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bin/launch_pcsx2_linux.sh b/bin/launch_pcsx2_linux.sh index 6a3681dbbd..7d89f04abb 100755 --- a/bin/launch_pcsx2_linux.sh +++ b/bin/launch_pcsx2_linux.sh @@ -56,6 +56,19 @@ then export LD_LIBRARY_PATH="./3rdPartyLibs:$LD_LIBRARY_PATH" fi fi +# openSuse don't follow FHS !!!! +bad_wx_path="/usr/lib/wx-2.8-stl" +if [ -e "$bad_wx_path" ] +then + if [ -z $LD_LIBRARY_PATH ] + then + OLD_LD_LIBRARY_PATH="" + export LD_LIBRARY_PATH="$bad_wx_path" + else + OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH" + export LD_LIBRARY_PATH="$bad_wx_path:$LD_LIBRARY_PATH" + fi +fi # Test plugin depencencies if [ -x `which ldd` ]