Banshee crashes when file/directory is not present
Bug #158419 reported by
LCID Fire
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
banshee (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: banshee
When banshee screws up the import there are chances that the underlying file and directory is not present. When doing a Delete from drive it crashes big time. Please patch the following changes into PlayerInterface.cs:
private void DeleteSong(
{
try
{
}
catch(
{
//directory is not there so for some reason the file is
//already purged - ignore
}
Changed in banshee: | |
status: | New → Confirmed |
Changed in banshee: | |
status: | New → Incomplete |
To post a comment you must log in.
This seems to be fixed as the current code of the stable branch looks like this:
private void DeleteSong( TrackInfo ti)
File. Delete( ti.Uri. LocalPath) ;
{
// trim empty parent directories
string old_dir = Path.GetDirecto ryName( ti.Uri. LocalPath) ;
while( old_dir != null && old_dir != String.Empty) {
Directory .Delete( old_dir) ;
old_ dir = Path.GetDirecto ryName( old_dir) ;
try {
}
} catch(Exception) {}
}