WrapEarnPass created an issue (geany/geany#4640)

As noted in https://github.com/geany/geany/issues/4627, if for some reason 
SESSION_FILE fails the g_file_test it falls back to a ```app->configdir, 
PREFS_FILE```
However, the PREFS_FILE may not be there, if the PREFS_FILE test failed.
```
file = g_build_filename(app->configdir, PREFS_FILE, NULL);
if (! g_file_test(file, G_FILE_TEST_IS_REGULAR))
...
file = g_build_filename(app->datadir, PREFS_FILE, NULL);
```

The fix is to call get_keyfile_for_payload from SESSION_FILE to ensure it uses 
the same PREFS_FILE that the initial test uses.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4640
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/[email protected]>

Reply via email to