rhythmbox r5907 - in trunk: . podcast
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: rhythmbox r5907 - in trunk: . podcast
- Date: Thu, 11 Sep 2008 16:13:37 +0000 (UTC)
Author: hadess
Date: Thu Sep 11 16:13:37 2008
New Revision: 5907
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5907&view=rev
Log:
2008-09-11 Bastien Nocera <hadess hadess net>
* podcast/rb-podcast-manager.c
(rb_podcast_manager_get_podcast_dir):
Change the default Podcast location to ~/Music (ie. the XDG user dir
for music), or ~/ if it doesn't exist (Closes: #357768)
Modified:
trunk/ChangeLog
trunk/podcast/rb-podcast-manager.c
Modified: trunk/podcast/rb-podcast-manager.c
==============================================================================
--- trunk/podcast/rb-podcast-manager.c (original)
+++ trunk/podcast/rb-podcast-manager.c Thu Sep 11 16:13:37 2008
@@ -2060,10 +2060,11 @@
char *conf_dir_uri = eel_gconf_get_string (CONF_STATE_PODCAST_DOWNLOAD_DIR);
if (conf_dir_uri == NULL || (strcmp (conf_dir_uri, "") == 0)) {
- char *conf_dir_name;
- conf_dir_name = g_build_filename (g_get_home_dir (),
- "Podcasts",
- NULL);
+ const char *conf_dir_name;
+
+ conf_dir_name = g_get_user_special_dir (G_USER_DIRECTORY_MUSIC);
+ if (!conf_dir_name)
+ conf_dir_name = g_get_home_dir ();
conf_dir_uri = g_filename_to_uri (conf_dir_name, NULL, NULL);
eel_gconf_set_string (CONF_STATE_PODCAST_DOWNLOAD_DIR, conf_dir_uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]