Closes #1763. I introduced an `enum` in `src/keyfile.c` called `ConfigPayload` which determines whether to read/write preference-data or session-data.
The strings `"geany.conf"` and `"session.conf"` are now defined as preprocessor macros `PREFERENCES_FILE` and `SESSION_FILE`, respectively. However, the string `"geany.conf"` still appears in `src/keybindings.c` and `src/libmain.c`. For the sake of backwards compatibility, if `session.conf` does not exist, the data is read from `geany.conf` instead. However, the old session data is not cleared from `geany.conf` when this happens. You can view, comment on, or merge this pull request online at: https://github.com/geany/geany/pull/2776 -- Commit Summary -- * split config file into preferences and session * read rec files from geany.conf if no session.conf -- File Changes -- M src/keyfile.c (99) -- Patch Links -- https://github.com/geany/geany/pull/2776.patch https://github.com/geany/geany/pull/2776.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/2776
