at 24.05-pre 26 lines 964 B view raw
1diff --git a/core/config_reader.c b/core/config_reader.c 2index 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]; 7 8 snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, file); 9- 10+ if(getenv("GIMXCONF")) { snprintf(file_path, sizeof(file_path), "%s", file); } 11 if(read_file(file_path) == -1) 12 { 13 gerror("read_file failed\n"); 14diff --git a/core/gimx.c b/core/gimx.c 15index 700cae9..9143d8b 100755 16--- a/core/gimx.c 17+++ b/core/gimx.c 18@@ -192,7 +192,7 @@ void show_config() 19 char file_path[PATH_MAX]; 20 21 snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, gimx_params.config_file); 22- 23+ if(getenv("GIMXCONF")) { snprintf(file_path, sizeof(file_path), "%s", gimx_params.config_file); } 24 FILE * fp = gfile_fopen(file_path, "r"); 25 if (fp == NULL) 26 {