summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-08-26 17:20:56 +0200
committerBastien Nocera <hadess@hadess.net>2021-08-26 17:21:28 +0200
commit14d29b8e45504b475ffb07a6a5617ba064892802 (patch)
treeb197c28ef29b3f34715326103daa9d07aae314d6
parentb59aec45372cfe6ea790793ae8fc5a3a32b5555d (diff)
downloadgnome-control-center-wip/hadess/parental-controls-fixes.tar.gz
user-accounts: Add debug when launching malcontent-controlwip/hadess/parental-controls-fixes
-rw-r--r--panels/user-accounts/cc-user-panel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/panels/user-accounts/cc-user-panel.c b/panels/user-accounts/cc-user-panel.c
index 249daa578..aa273fca2 100644
--- a/panels/user-accounts/cc-user-panel.c
+++ b/panels/user-accounts/cc-user-panel.c
@@ -1214,7 +1214,11 @@ spawn_malcontent_control (CcUserPanel *self)
#endif /* HAVE_MALCONTENT_0_10 */
NULL
};
- g_spawn_async (NULL, (char **)argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);
+ g_autoptr(GError) error = NULL;
+ if (!g_spawn_async (NULL, (char **)argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error))
+ g_debug ("Couldn't launch malcontent-control: %s", error->message);
+ } else {
+ g_debug ("Not launching malcontent because selected user is an admin");
}
}
#endif