fixed default value of lensfunDbDirectory when BUILD_BUNDLE is set
This commit is contained in:
@@ -529,7 +529,7 @@ int main (int argc, char **argv)
|
|||||||
licensePath = Glib::build_filename (exePath, LICENCE_SEARCH_PATH);
|
licensePath = Glib::build_filename (exePath, LICENCE_SEARCH_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Glib::path_is_absolute (LENSFUN_DB_PATH)) {
|
if (strlen(LENSFUN_DB_PATH) == 0 || Glib::path_is_absolute (LENSFUN_DB_PATH)) {
|
||||||
options.rtSettings.lensfunDbDirectory = LENSFUN_DB_PATH;
|
options.rtSettings.lensfunDbDirectory = LENSFUN_DB_PATH;
|
||||||
} else {
|
} else {
|
||||||
options.rtSettings.lensfunDbDirectory = Glib::build_filename (exePath, LENSFUN_DB_PATH);
|
options.rtSettings.lensfunDbDirectory = Glib::build_filename (exePath, LENSFUN_DB_PATH);
|
||||||
|
Reference in New Issue
Block a user