changeset 4837:a2ae808cabb4

Add configdb entry "interface", and set default to "skinned".
author William Pitcock <nenolod@atheme.org>
date Sun, 05 Apr 2009 15:28:06 -0500
parents fb3386ba8498
children 53dd85fdf42b
files src/audlegacy/main.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audlegacy/main.c	Sun Apr 05 15:24:15 2009 -0500
+++ b/src/audlegacy/main.c	Sun Apr 05 15:28:06 2009 -0500
@@ -358,7 +358,13 @@
     }
 
     if (options.interface == NULL)
-        options.interface = g_strdup("legacy");
+    {
+        mcs_handle_t *db = cfg_db_open();
+        cfg_db_get_string(db, NULL, "interface", &options.interface);
+
+        if (options.interface == NULL)
+            options.interface = g_strdup("legacy");
+    }
 
     handle_cmd_line_filenames(is_running);