summaryrefslogtreecommitdiff
path: root/music.c
diff options
context:
space:
mode:
Diffstat (limited to 'music.c')
-rw-r--r--music.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/music.c b/music.c
index c81d4dd..559abc4 100644
--- a/music.c
+++ b/music.c
@@ -1,13 +1,19 @@
#include "music.h"
+#include "conf.h"
#include <glib/gstdio.h>
#include <string.h>
struct directory *music_root = NULL;
-gboolean music_init(const gchar *path) {
+gboolean music_init() {
+ gchar *path = conf_get_string("audist", "music_root");
+ if(path == NULL) {
+ g_error("no music_root is set!");
+ }
+
music_root = g_new0(struct directory, 1);
- music_root->path = g_strdup(path);
+ music_root->path = path;
g_debug("added music root %s", path);