Mercurial > audlegacy
comparison src/audlegacy/main.c @ 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 | 7bf7f83a217e |
children | ca837b93ad0f |
comparison
equal
deleted
inserted
replaced
4836:fb3386ba8498 | 4837:a2ae808cabb4 |
---|---|
356 print_version(); | 356 print_version(); |
357 exit(EXIT_SUCCESS); | 357 exit(EXIT_SUCCESS); |
358 } | 358 } |
359 | 359 |
360 if (options.interface == NULL) | 360 if (options.interface == NULL) |
361 options.interface = g_strdup("legacy"); | 361 { |
362 mcs_handle_t *db = cfg_db_open(); | |
363 cfg_db_get_string(db, NULL, "interface", &options.interface); | |
364 | |
365 if (options.interface == NULL) | |
366 options.interface = g_strdup("legacy"); | |
367 } | |
362 | 368 |
363 handle_cmd_line_filenames(is_running); | 369 handle_cmd_line_filenames(is_running); |
364 | 370 |
365 #ifdef USE_DBUS | 371 #ifdef USE_DBUS |
366 if (is_running) | 372 if (is_running) |