summaryrefslogtreecommitdiff
path: root/drivers/unix/os_unix.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-12-08 17:04:24 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-12-08 17:04:24 -0300
commiteff81965af5a7c8180889d55eb55992680e896a4 (patch)
tree0b2992a510ee9bb68da08be8773378509807ceef /drivers/unix/os_unix.cpp
parenta6ac1fcd94c6433776d6f8c3fba4c48f36a4d8dd (diff)
parente1d02e4831fdec372771956aa2ac70954ab3fe7b (diff)
Merge pull request #2956 from est31/add_system_wide_export_path
Add way to look for templates at system wide level too
Diffstat (limited to 'drivers/unix/os_unix.cpp')
-rw-r--r--drivers/unix/os_unix.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp
index fd8c26f6d9..94a7b03f45 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -477,6 +477,14 @@ String OS_Unix::get_data_dir() const {
}
+String OS_Unix::get_installed_templates_path() const {
+ String p=get_global_settings_path();
+ if (p!="")
+ return p+"/templates/";
+ else
+ return "";
+}
+
String OS_Unix::get_executable_path() const {
#ifdef __linux__