Skip to content

Commit

Permalink
try to get GSettings working (GTK3, macOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllinCottrell committed Dec 18, 2024
1 parent d8a84af commit 2365d5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gui/osx_env.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,15 @@ void osx_setup_paths (void)
setenv("GTK_EXE_PREFIX", respath, 1);
setenv("G_FILENAME_ENCODING", "UTF-8", 1);

#if GTK_MAJOR_VERSION == 3
tmp = g_strdup_printf("%s/share/glib-2.0/schemas", respath);
setenv("GSETTINGS_SCHEMA_DIR", tmp, 1);
g_free(tmp);
#else
tmp = g_strdup_printf("%s/etc/gtk-2.0/gtkrc", respath);
setenv("GTK2_RC_FILES", tmp, 1);
g_free(tmp);
#endif
tmp = g_strdup_printf("%s/etc/gtk-2.0/gtk.immodules", respath);
setenv("GTK_IM_MODULE_FILE", tmp, 1);
g_free(tmp);
Expand Down

0 comments on commit 2365d5c

Please sign in to comment.