Diff between 777bc7c3f50c769ef1133e5bd598f300a060d3f5 and 180cf09933b2d8eb03972c8638063429fe5fece5

Changed Files

File Additions Deletions Status
plugins/policy.c +5 -1 modified
src/main.conf +2 -2 modified

Full Patch

diff --git a/plugins/policy.c b/plugins/policy.c
index 48f5db7..0bbdbfc 100644
--- a/plugins/policy.c
+++ b/plugins/policy.c
@@ -892,7 +892,11 @@ static int policy_init(void)
 	}
 
 	auto_enable = g_key_file_get_boolean(conf, "Policy", "AutoEnable",
-									NULL);
+								&gerr);
+	if (gerr) {
+		g_clear_error(&gerr);
+		auto_enable = true;
+	}
 
 	resume_delay = g_key_file_get_integer(
 			conf, "Policy", "ResumeDelay", &gerr);
diff --git a/src/main.conf b/src/main.conf
index 4017962..91b98b8 100644
--- a/src/main.conf
+++ b/src/main.conf
@@ -276,8 +276,8 @@
 
 # AutoEnable defines option to enable all controllers when they are found.
 # This includes adapters present on start as well as adapters that are plugged
-# in later on. Defaults to 'false'.
-#AutoEnable=false
+# in later on. Defaults to 'true'.
+#AutoEnable=true
 
 # Audio devices that were disconnected due to suspend will be reconnected on
 # resume. ResumeDelay determines the delay between when the controller