#include <libavformat/avio.h>
}
#include <boost/algorithm/string.hpp>
-#include <boost/foreach.hpp>
#include <boost/function.hpp>
#if BOOST_VERSION >= 106100
#include <boost/dll/runtime_symbol_info.hpp>
using std::cerr;
using std::cout;
using std::runtime_error;
-using boost::shared_ptr;
+using std::shared_ptr;
using boost::optional;
using boost::function;
boost::filesystem::path
xsd_path ()
{
+ if (auto appdir = getenv("APPDIR")) {
+ return boost::filesystem::path(appdir) / "usr" / "share" / "libdcp" / "xsd";
+ }
return boost::filesystem::canonical(LINUX_SHARE_PREFIX) / "libdcp" / "xsd";
}
boost::filesystem::path
tags_path ()
{
+ if (auto appdir = getenv("APPDIR")) {
+ return boost::filesystem::path(appdir) / "usr" / "share" / "libdcp" / "tags";
+ }
return boost::filesystem::canonical(LINUX_SHARE_PREFIX) / "libdcp" / "tags";
}
bool
Drive::unmount ()
{
- BOOST_FOREACH (boost::filesystem::path i, _mount_points) {
+ for (auto i: _mount_points) {
int const r = umount(i.string().c_str());
LOG_DISK("Tried to unmount %1 and got %2 and %3", i.string(), r, errno);
if (r == -1) {