index c2c29b3aca577e651b5f04b53a97805b6555f4bd..0e36133295c2477b76cb52963c4dbba3aaa9d4d2 100644 (file)
--- a/main.c
+++ b/main.c
#include "options.h"
#include "command.h"
#include "screen.h"
+#include "conf.h"
+
static mpd_client_t *mpc = NULL;
struct sigaction act;
int counter, connected;
+ /* initialize options */
+ options = options_init();
+
+ /* read configuration */
+ read_rc_file(NULL, options);
+
/* parse command line options */
- options_init();
- options = options_parse(argc, argv);
+ options_parse(argc, argv);
/* initialize local charset */
if( charset_init() )