summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_config.c')
-rw-r--r--src/lib/elementary/elm_config.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index ac8d5d10b6..119d75776d 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -1459,9 +1459,14 @@ _profile_fetch_from_conf(void)
1459 } 1459 }
1460 } 1460 }
1461 1461
1462 if(!_use_build_config) 1462 for (i = 0; i < 2 && !_use_build_config; i++)
1463 { 1463 {
1464 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/profile.cfg"); 1464 // user profile
1465 if (i == 0)
1466 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
1467 // system profile
1468 else if (i == 1)
1469 _elm_data_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
1465 ef = eet_open(buf, EET_FILE_MODE_READ); 1470 ef = eet_open(buf, EET_FILE_MODE_READ);
1466 if (ef) 1471 if (ef)
1467 { 1472 {