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

elextr notifications at xxxxx
Sun Apr 4 23:18:40 UTC 2021


@elextr commented on this pull request.



>  {
 	GKeyFile *config = g_key_file_new();
-	gchar *configfile = g_build_filename(app->configdir, "geany.conf", NULL);
+	gchar *configfile = g_build_filename(app->configdir, filename, NULL);
 	gchar *data;
 
 	g_key_file_load_from_file(config, configfile, G_KEY_FILE_NONE, NULL);
 
 	/* this signal can be used e.g. to prepare any settings before Stash code reads them below */
 	g_signal_emit_by_name(geany_object, "save-settings", config);

Probably ok with just the prefs, not aware of anything in Geany or any plugins that use the `save-settings` for getting the session or MRUs.  Since they would have to change to the new signal anyway, leave it for now and add if they ask.

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


More information about the Github-comments mailing list