Commit 2452fff8ff2a46b5296b8fa30f8b317956bff1e6
1 parent
bd6a7b94
Exists in
master
and in
5 other branches
Corrigindo detecção do arquivo de configuração default.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/pw3270/common/config.c
... | ... | @@ -229,7 +229,7 @@ |
229 | 229 | sysconfig = g_get_system_data_dirs(); |
230 | 230 | for(f=0;sysconfig[f];f++) |
231 | 231 | { |
232 | - filename = g_strdup_printf(mask,sysconfig[f],g_get_application_name()); | |
232 | + filename = g_strdup_printf("%s" G_DIR_SEPARATOR_S PACKAGE_NAME G_DIR_SEPARATOR_S "%s.conf",sysconfig[f],g_get_application_name()); | |
233 | 233 | trace("Checking for %s",filename); |
234 | 234 | if(g_file_test(filename,G_FILE_TEST_IS_REGULAR)) |
235 | 235 | return filename; | ... | ... |