Remove some Linux hacks that I can't see the point of any more.
authorCarl Hetherington <cth@carlh.net>
Tue, 29 Sep 2020 20:15:56 +0000 (22:15 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 29 Sep 2020 20:15:56 +0000 (22:15 +0200)
run/dcpomatic
src/lib/cross_linux.cc

index 43703fe..8ce6d06 100755 (executable)
@@ -5,7 +5,6 @@ build=$DIR/../build
 export LD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$build/src/asdcplib/src:$LD_LIBRARY_PATH
 export DYLD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$build/src/asdcplib/src:/Users/c.hetherington/osx-environment/64/lib
 export DCPOMATIC_GRAPHICS=$DIR/../graphics
-export DCPOMATIC_SHARE_PREFIX=.
 binary=$build/src/tools/dcpomatic2
 if [ "$1" == "--debug" ]; then
     shift
index 0f31c10..2d43d38 100644 (file)
@@ -101,11 +101,6 @@ cpu_info ()
 boost::filesystem::path
 resources_path ()
 {
-       char* prefix = getenv ("DCPOMATIC_SHARE_PREFIX");
-       if (prefix) {
-               return boost::filesystem::path(prefix) / "dcpomatic2";
-       }
-
        return directory_containing_executable().parent_path() / "share" / "dcpomatic2";
 }