changeset 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 cd6baa8283fe
children ae30eb582a66
files src/audacious/main.c src/audacious/main.h
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/main.c	Sun Aug 26 15:16:52 2007 +0200
+++ b/src/audacious/main.c	Sun Aug 26 23:00:02 2007 +0930
@@ -485,6 +485,7 @@
     make_directory(bmp_paths[BMP_PATH_USER_PLUGIN_DIR], mode755);
     make_directory(bmp_paths[BMP_PATH_USER_SKIN_DIR], mode755);
     make_directory(bmp_paths[BMP_PATH_SKIN_THUMB_DIR], mode755);
+    make_directory(bmp_paths[BMP_PATH_PLAYLISTS_DIR], mode755);
 }
 
 static void
@@ -526,6 +527,9 @@
     bmp_paths[BMP_PATH_SKIN_THUMB_DIR] =
         g_build_filename(xdg_cache_home, "audacious", "thumbs", NULL);
 
+    bmp_paths[BMP_PATH_PLAYLISTS_DIR] =
+        g_build_filename(bmp_paths[BMP_PATH_USER_DIR], "playlists", NULL);
+
     bmp_paths[BMP_PATH_CONFIG_FILE] =
         g_build_filename(bmp_paths[BMP_PATH_USER_DIR], "config", NULL);
 #ifdef HAVE_XSPF_PLAYLIST
--- a/src/audacious/main.h	Sun Aug 26 15:16:52 2007 +0200
+++ b/src/audacious/main.h	Sun Aug 26 23:00:02 2007 +0930
@@ -148,6 +148,7 @@
     BMP_PATH_USER_PLUGIN_DIR,
     BMP_PATH_USER_SKIN_DIR,
     BMP_PATH_SKIN_THUMB_DIR,
+    BMP_PATH_PLAYLISTS_DIR,
     BMP_PATH_ACCEL_FILE,
     BMP_PATH_CONFIG_FILE,
     BMP_PATH_PLAYLIST_FILE,