/* Apple's CoreFoundation classes must not be used from forked
* processes. Since freetype (and thus GTK) uses them, we simply
* disable the thumbnailer on MacOS for now. That means no thumbs
* until the thumbnailing process is rewritten, but at least we won't
* make apps crash. */
#ifndef __APPLE__
/*
child_pid = fork ();
if (child_pid == 0)
{
ThemeThumbnailData data;
GIOChannel *channel;
/* Child */
/*gtk_init (&argc, &argv);
close (pipe_to_factory_fd[1]);
pipe_to_factory_fd[1] = 0;
close (pipe_from_factory_fd[0]);
pipe_from_factory_fd[0] = 0;
If I disable some lines in "gnome- appearance- properties" source code, issue is fixed :
In "capplets/ common/ theme-thumbnail .c" source file :
void _factory_ init (int argc, char *argv[])
theme_thumbnail
{
#ifndef __APPLE__
gint child_pid;
#endif
pipe (pipe_to_ factory_ fd); factory_ fd);
pipe (pipe_from_
/* Apple's CoreFoundation classes must not be used from forked ailData data;
* processes. Since freetype (and thus GTK) uses them, we simply
* disable the thumbnailer on MacOS for now. That means no thumbs
* until the thumbnailing process is rewritten, but at least we won't
* make apps crash. */
#ifndef __APPLE__
/*
child_pid = fork ();
if (child_pid == 0)
{
ThemeThumbn
GIOChannel *channel;
/* Child */
/*gtk_init (&argc, &argv);
close (pipe_to_ factory_ fd[1]); to_factory_ fd[1] = 0; factory_ fd[0]); from_factory_ fd[0] = 0;
pipe_
close (pipe_from_
pipe_
data.status = READY_FOR_THEME; control_ theme_name = g_byte_array_new (); gtk_color_ scheme = g_byte_array_new (); wm_theme_ name = g_byte_array_new (); icon_theme_ name = g_byte_array_new (); application_ font = g_byte_array_new ();
data.type = g_byte_array_new ();
data.
data.
data.
data.
data.
channel = g_io_channel_ unix_new (pipe_to_ factory_ fd[0]); channel_ set_flags (channel, g_io_channel_ get_flags (channel) |
G_IO_ FLAG_NONBLOCK, NULL); channel_ set_encoding (channel, NULL, NULL); from_capplet, &data); channel_ unref (channel);
g_io_
g_io_
g_io_add_watch (channel, G_IO_IN | G_IO_HUP, message_
g_io_
gtk_main ();
_exit (0);
}
g_assert (child_pid > 0);
/* Parent *//* factory_ fd[0]); factory_ fd[1]); */
close (pipe_to_
close (pipe_from_
#endif /* __APPLE__ */
async_data.set = FALSE; data.theme_ name = NULL;
async_
async_data.data = g_byte_array_new ();
}