diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-09-14 13:04:16 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-09-14 13:04:16 +0200 |
| commit | 4c804a0d92ebd03b70bfc7f736fcaf5f77cb3bb7 (patch) | |
| tree | ed4d7080771f529980f1dafe48347ee4e2795c37 /src/lib/cross_linux.cc | |
| parent | ff623a7f045575169820b28a9e1d4ee10ec2fb69 (diff) | |
Add xsd_path() and use it to fix access to .xsd files on Linux (#1830).
Diffstat (limited to 'src/lib/cross_linux.cc')
| -rw-r--r-- | src/lib/cross_linux.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc index e17f188b9..95bd975f8 100644 --- a/src/lib/cross_linux.cc +++ b/src/lib/cross_linux.cc @@ -103,11 +103,23 @@ shared_path () { char const * p = getenv ("DCPOMATIC_LINUX_SHARE_PREFIX"); if (p) { - return p; + return boost::filesystem::path(p) / "dcpomatic2"; + } + return boost::filesystem::canonical(LINUX_SHARE_PREFIX) / "dcpomatic2"; +} + + +boost::filesystem::path +xsd_path () +{ + char const * p = getenv ("DCPOMATIC_LINUX_SHARE_PREFIX"); + if (p) { + return boost::filesystem::path(p) / "libdcp" / "xsd"; } - return boost::filesystem::canonical (LINUX_SHARE_PREFIX); + return boost::filesystem::canonical(LINUX_SHARE_PREFIX) / "libdcp" / "xsd"; } + void run_ffprobe (boost::filesystem::path content, boost::filesystem::path out) { |
