GNOME Bugzilla – Bug 357768
Podcasts directory should be created when required
Last modified: 2008-09-11 16:14:00 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/rhythmbox/+bug/62400 "Ubuntu Edgy knot 3 Edit->Preferences Dialog box: The folder contents could not be displayed error accessing 'file:///home/foo/Podcasts':File not found ~/Podcasts is the default location to store podcasts which you set in preferences. Rhythmbox should make the directory rather than complain it doesn't exist."
The directory should get created if it doesn't exist, and it works fine for me. Is this reproducable? If so, could you run Rhythmbox from a termainal with "rhythmbox -d" and copy the last 20 or so lines it prints when you it displays the error?
still happening with 0.9.6: - start rhythmbox - don't import any directory - go the preferences - you get the dialog previously mentionned Nothing special from rhythmbox -d: "(15:32:25) [0x63ae80] [rb_shell_preferences_sync] rb-shell-preferences.c:566: syncing prefs (15:32:25) [0x63ae80] [rb_library_source_preferences_sync] rb-library-source.c:511: syncing pref dialog state (15:32:25) [0x63ae80] [rb_library_source_layout_path_changed] rb-library-source.c:1004: layout path changed (15:32:25) [0x63ae80] [rb_library_source_layout_filename_changed] rb-library-source.c:1035: layout filename changed (15:32:27) [0x63ae80] [rb_library_source_layout_filename_changed] rb-library-source.c:1035: layout filename changed (15:32:27) [0x63ae80] [rb_library_source_layout_path_changed] rb-library-source.c:1004: layout path changed"
Sorry, I misread earlier - the problem isn't when a podcast is downloaded, it's when you open the preferences. The GTK file chooser can't select things that don't exist, so the options for fixing it would be: 1) create the folder if it doesn't exist when opening the prefs dialog (urgh), or 2) switching to a parent folder chooser + folder name entry combo (not great), or 3) something I haven't though of.
I agree that creating folders automatically is "Eww". What about defaulting to `xdg-user-dir MUSIC`?
(In reply to comment #4) > I agree that creating folders automatically is "Eww". What about defaulting to > `xdg-user-dir MUSIC`? That'd make them show up in the main library when using "Watch music folder", as we don't have code to avoid that. See bug 323440
*** Bug 507541 has been marked as a duplicate of this bug. ***
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)