1 diff --git a/core/config_reader.c b/core/config_reader.c
2 index 451fc48..ed45f4d 100644
3 --- a/core/config_reader.c
4 +++ b/core/config_reader.c
5 @@ -1355,7 +1355,7 @@ int read_config_file(const char* file)
6 char file_path[PATH_MAX];
8 snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, file);
10 + if(getenv("GIMXCONF")) { snprintf(file_path, sizeof(file_path), "%s", file); }
11 if(read_file(file_path) == -1)
13 gerror("read_file failed\n");
14 diff --git a/core/gimx.c b/core/gimx.c
15 index 700cae9..9143d8b 100755
18 @@ -192,7 +192,7 @@ void show_config()
19 char file_path[PATH_MAX];
21 snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, gimx_params.config_file);
23 + if(getenv("GIMXCONF")) { snprintf(file_path, sizeof(file_path), "%s", gimx_params.config_file); }
24 FILE * fp = gfile_fopen(file_path, "r");