Make the setting unix-only.

For this, put the detection into the OS class and its subclass.
This commit is contained in:
est31 2015-11-30 02:35:59 +01:00
parent 15f6d3cebf
commit e1d02e4831
8 changed files with 24 additions and 13 deletions

View file

@ -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__