GNOME Bugzilla – Bug 551035
First "Import Folder" reports "Operation not supported"
Last modified: 2009-01-17 00:10:58 UTC
rhythmbox version is trunk and GNOME is trunk also, steps to reproduce it: 1. Start Rhythmbox for the first time (or after deleting .gnome2/rhythmbox). 2. Choose "Music" > "Import Folder". What happens: A filepicker appears with the error "The folder contents could not be displayed - Operation not supported". What should happen: A filepicker appears with no error message. this bug was also reported in Ubuntu here: https://bugs.edge.launchpad.net/ubuntu/+source/rhythmbox/+bug/242013 Ubuntu rhythmbox version is 0.11.6svn20080903 screenshot of the error: http://launchpadlibrarian.net/15684986/Screenshot-rhythmbox.png Will attach the rhythmbox log to the report, thanks you.
Created attachment 118118 [details] rhythmbox debug log
*** Bug 550856 has been marked as a duplicate of this bug. ***
We do two things with the file chooser that other apps may not: - add a shortcut to the user's music directory - set local-only to FALSE The shortcut is unlikely to be the cause (in the attached debug output, the folder is /home/pvillavi, which is pretty safe). Do you have any network shares that show up in the file chooser?
In my case I get the same problem with and without any network share
Created attachment 126612 [details] [review] Proposed patch Whoops, didn't see this bug before filing bug 568024 (which has easy reproduction steps, btw). Here's a patch that fixes this error by checking for the empty string.
*** Bug 568024 has been marked as a duplicate of this bug. ***
I'm reopening bug since I've provided easy reproducability steps. (i.e. the questions previously asked don't matter) I'll copy and paste from the dup, just so you don't have to hunt them down: To reproduce: 1. Open gconf-editor 2. Find /apps/rhythmbox/state/add_dir 3. Right click and "Unset Key" 4. Open Rhythmbox 5. Choose "Music->Import Folder..."
Thanks for tracking this down. I don't see much of a reason to use rb_music_dir() when state/add_dir isn't set, though. If the user's music library is actually in that directory, anything in there should already have been imported. If not, it's not a useful guess as to where they want to import from. We already add a shortcut to the file chooser for that directory. If the directory doesn't exist, you get the same 'operation not supported' error that we're trying to fix here. 2009-01-17 Jonathan Matthew <jonathan@d14n.org> based on patch by: Michael Terry <michael.terry@canonical.com> * shell/rb-shell.c: (rb_shell_cmd_add_folder_to_library), (rb_shell_cmd_add_file_to_library): Don't try to set the file chooser's current location to '' when the state/add_dir gconf key isn't set. Fixes #551035.