summaryrefslogtreecommitdiffhomepage
path: root/compat/base-path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/base-path.cpp')
-rw-r--r--compat/base-path.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/compat/base-path.cpp b/compat/base-path.cpp
new file mode 100644
index 00000000..3285bac8
--- /dev/null
+++ b/compat/base-path.cpp
@@ -0,0 +1,10 @@
+#include "base-path.hpp"
+#include <QCoreApplication>
+
+OTR_COMPAT_EXPORT
+never_inline
+const QString& application_base_path()
+{
+ static QString const& const_path = QCoreApplication::applicationDirPath();
+ return const_path;
+}