allow to use a relative path for Lensfun.DBDirectory in options

This commit is contained in:
Alberto Griggio
2017-09-26 00:10:23 +02:00
parent 31095d3a9d
commit be39ef3260
3 changed files with 7 additions and 11 deletions

View File

@@ -529,11 +529,7 @@ int main (int argc, char **argv)
licensePath = Glib::build_filename (exePath, LICENCE_SEARCH_PATH);
}
if (strlen(LENSFUN_DB_PATH) == 0 || Glib::path_is_absolute (LENSFUN_DB_PATH)) {
options.rtSettings.lensfunDbDirectory = LENSFUN_DB_PATH;
} else {
options.rtSettings.lensfunDbDirectory = Glib::build_filename (exePath, LENSFUN_DB_PATH);
}
options.rtSettings.lensfunDbDirectory = LENSFUN_DB_PATH;
#else
argv0 = DATA_SEARCH_PATH;