summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xfconf-query/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xfconf-query/main.c b/xfconf-query/main.c
index 8f9148d..a622e81 100644
--- a/xfconf-query/main.c
+++ b/xfconf-query/main.c
@@ -356,7 +356,10 @@ main(int argc, char **argv)
if(G_VALUE_HOLDS_BOOLEAN(&value))
{
if(xfconf_channel_set_bool(channel, property_name, !g_value_get_boolean(&value)))
+ {
+ xfconf_shutdown ();
return EXIT_SUCCESS;
+ }
else
xfconf_query_printerr(_("Failed to set property"));
}
@@ -414,6 +417,7 @@ main(int argc, char **argv)
if(!prop_exists && (!type || !type[0]))
{
xfconf_query_printerr(_("When creating a new property, the value type must be specified"));
+ xfconf_shutdown ();
return EXIT_FAILURE;
}