[Github-comments] [geany/geany] Split geany.conf into geany.conf (preferences) and session.conf (recent files and VTE session) (#2776)

Adam Morris notifications at xxxxx
Sat Apr 3 14:39:42 UTC 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210403/abfba475/attachment.htm>


More information about the Github-comments mailing list