summaryrefslogtreecommitdiff
path: root/src/lib/cross_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cross_linux.cc')
-rw-r--r--src/lib/cross_linux.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc
index 015158aa8..be3233b32 100644
--- a/src/lib/cross_linux.cc
+++ b/src/lib/cross_linux.cc
@@ -85,7 +85,12 @@ cpu_info ()
boost::filesystem::path
resources_path ()
{
- return directory_containing_executable().parent_path() / "share" / "dcpomatic2";
+ auto installed = directory_containing_executable().parent_path() / "share" / "dcpomatic2";
+ if (boost::filesystem::exists(installed)) {
+ return installed;
+ }
+
+ return directory_containing_executable().parent_path().parent_path().parent_path();
}