From 331c9592b67a00573f32cefbc4270e879d15de3d Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 16 Nov 2015 10:20:54 +0100 Subject: [PATCH] fix bug when starting linphone from home directory on mac. In such case the local .linphonerc is found but cannot be loaded because of the chdir() that occurs just before starting the library. --- gtk/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtk/main.c b/gtk/main.c index feda2f4d9..67d7eeba5 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -166,10 +166,7 @@ char *linphone_gtk_get_config_file(const char *filename){ const int path_max=1024; char *config_file=g_malloc0(path_max); if (filename==NULL) filename=CONFIG_FILE; - /*try accessing a local file first if exists*/ - if (access(CONFIG_FILE,F_OK)==0){ - snprintf(config_file,path_max,"%s",filename); - } else if (g_path_is_absolute(filename)) { + if (g_path_is_absolute(filename)) { snprintf(config_file,path_max,"%s",filename); } else{ #ifdef WIN32