Code

conf.c: use g_mkdir for WIN32 compatibility
[ncmpc.git] / src / options.c
index 1b3e9af09cbfb31e7edf7e79ef41d39094214c92..35de128e1e602a4b7aed0d5008120471d10ac1ca 100644 (file)
@@ -53,6 +53,7 @@ options_t options = {
        .lyrics_timeout = DEFAULT_LYRICS_TIMEOUT,
        .lyrics_autosave = false,
        .lyrics_show_plugin = false,
+       .text_editor_ask = true,
 #endif
        .find_wrap = true,
        .scroll_offset = 0,
@@ -369,9 +370,6 @@ options_init(void)
        options.list_format = g_strdup(DEFAULT_LIST_FORMAT);
        options.status_format = g_strdup(DEFAULT_STATUS_FORMAT);
        options.screen_list = g_strsplit_set(DEFAULT_SCREEN_LIST, " ", 0);
-#ifdef ENABLE_LYRICS_SCREEN
-       options.text_editor = g_strdup(DEFAULT_TEXT_EDITOR);
-#endif
 #ifndef NCMPC_MINI
        options.scroll_sep = g_strdup(DEFAULT_SCROLL_SEP);
 #endif
@@ -395,4 +393,7 @@ options_deinit(void)
        g_free(options.xterm_title_format);
        g_free(options.scroll_sep);
 #endif
+#ifdef ENABLE_LYRICS_SCREEN
+       g_free(options.text_editor);
+#endif
 }