comparison src/audacious/main.c @ 3400:8764498b75ed

Add new playlists directory to paths
author Kieran Clancy <clancy.kieran+audacious@gmail.com>
date Sun, 26 Aug 2007 23:00:02 +0930
parents 7a4fcf84a34f
children 709cd9c2fa8f 540e49d1d87c
comparison
equal deleted inserted replaced
3399:cd6baa8283fe 3400:8764498b75ed
483 483
484 make_directory(bmp_paths[BMP_PATH_USER_DIR], mode755); 484 make_directory(bmp_paths[BMP_PATH_USER_DIR], mode755);
485 make_directory(bmp_paths[BMP_PATH_USER_PLUGIN_DIR], mode755); 485 make_directory(bmp_paths[BMP_PATH_USER_PLUGIN_DIR], mode755);
486 make_directory(bmp_paths[BMP_PATH_USER_SKIN_DIR], mode755); 486 make_directory(bmp_paths[BMP_PATH_USER_SKIN_DIR], mode755);
487 make_directory(bmp_paths[BMP_PATH_SKIN_THUMB_DIR], mode755); 487 make_directory(bmp_paths[BMP_PATH_SKIN_THUMB_DIR], mode755);
488 make_directory(bmp_paths[BMP_PATH_PLAYLISTS_DIR], mode755);
488 } 489 }
489 490
490 static void 491 static void
491 bmp_free_paths(void) 492 bmp_free_paths(void)
492 { 493 {
523 bmp_paths[BMP_PATH_USER_PLUGIN_DIR] = 524 bmp_paths[BMP_PATH_USER_PLUGIN_DIR] =
524 g_build_filename(xdg_data_home, "audacious", "Plugins", NULL); 525 g_build_filename(xdg_data_home, "audacious", "Plugins", NULL);
525 526
526 bmp_paths[BMP_PATH_SKIN_THUMB_DIR] = 527 bmp_paths[BMP_PATH_SKIN_THUMB_DIR] =
527 g_build_filename(xdg_cache_home, "audacious", "thumbs", NULL); 528 g_build_filename(xdg_cache_home, "audacious", "thumbs", NULL);
529
530 bmp_paths[BMP_PATH_PLAYLISTS_DIR] =
531 g_build_filename(bmp_paths[BMP_PATH_USER_DIR], "playlists", NULL);
528 532
529 bmp_paths[BMP_PATH_CONFIG_FILE] = 533 bmp_paths[BMP_PATH_CONFIG_FILE] =
530 g_build_filename(bmp_paths[BMP_PATH_USER_DIR], "config", NULL); 534 g_build_filename(bmp_paths[BMP_PATH_USER_DIR], "config", NULL);
531 #ifdef HAVE_XSPF_PLAYLIST 535 #ifdef HAVE_XSPF_PLAYLIST
532 bmp_paths[BMP_PATH_PLAYLIST_FILE] = 536 bmp_paths[BMP_PATH_PLAYLIST_FILE] =