+boost::filesystem::path
+shared_path ()
+{
+#ifdef DCPOMATIC_LINUX
+ return boost::filesystem::canonical (LINUX_SHARE_PREFIX);
+#endif
+#ifdef DCPOMATIC_WINDOWS
+ wchar_t dir[512];
+ GetModuleFileName (GetModuleHandle (0), dir, sizeof (dir));
+ PathRemoveFileSpec (dir);
+ return dir.parent_path();
+#endif
+#ifdef DCPOMATIC_OSX
+ return app_contents();
+#endif
+}
+