From bffe9dd0a8050bfcdebb70a15119da6f00ef2182 Mon Sep 17 00:00:00 2001 From: Joscha Schmiedt <joscha@schmiedt.dev> Date: Tue, 3 Sep 2024 09:37:25 +0200 Subject: [PATCH] Add support for linkahead-client.json caosdb-client.json is still kept, but linkahead has precedence. --- include/linkahead/constants.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linkahead/constants.h.in b/include/linkahead/constants.h.in index e57c96d..984aba4 100644 --- a/include/linkahead/constants.h.in +++ b/include/linkahead/constants.h.in @@ -42,6 +42,14 @@ __attribute__((unused)) static const char* COMPATIBLE_SERVER_VERSION_PRE_RELEASE */ __attribute__((unused)) static const char* LIBLINKAHEAD_CONFIGURATION_FILES_PRECEDENCE[] = { "$LINKAHEAD_CLIENT_CONFIGURATION", + "linkahead_client.json", + "linkahead-client.json", + ".linkahead_client.json", + ".linkahead-client.json", + "$HOME/linkahead_client.json", + "$HOME/linkahead-client.json", + "$HOME/.linkahead_client.json", + "$HOME/.linkahead-client.json" "caosdb_client.json", "caosdb-client.json", ".caosdb_client.json", -- GitLab