core: Move unix signal handler later in the process

This does spawn a thread, so better to leave for late(r) initialization.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/923
This commit is contained in:
Carlos Garnacho
2019-05-08 14:18:23 +02:00
parent 231d9e3c31
commit 9d61e6e56f

View File

@@ -553,8 +553,6 @@ meta_init (void)
g_strerror (errno));
#endif
g_unix_signal_add (SIGTERM, on_sigterm, NULL);
if (g_getenv ("MUTTER_VERBOSE"))
meta_set_verbose (TRUE);
if (g_getenv ("MUTTER_DEBUG"))
@@ -575,6 +573,8 @@ meta_init (void)
meta_set_is_wayland_compositor (TRUE);
#endif
g_unix_signal_add (SIGTERM, on_sigterm, NULL);
if (g_get_home_dir ())
if (chdir (g_get_home_dir ()) < 0)
meta_warning ("Could not change to home directory %s.\n",