Description of problem: When gong Back in Thunar, but the directory in history doesn't exist anymore, Thunar crashes. Version: 1.6.2 (not in the list here) How reproducible: Always. Steps to Reproduce: 1. Create a directory, let's say ~/testdir 2. Navigate Thunar to that directory 3. Go up in directory structure (in example case to ~) 4. Either rename or delete ~/testdir 5. Go back in history (use toolbar icon or hit [Backspace]) Actual results: Thunar crashes Expected results: Thunar raises error saying the directory in history no longer exists and asks the user if he wants to go directly to last existing directory in history. The error dialog provides a checkbox to prevent this dialog to show again next time. Or simply perform the action above without any dialog.
Created attachment 4903 Fixes segfault on history not found in Thunar This simple patch will avoid the segfault happening when a location in history is not found. After applying the patch, Thunar will simply show an error message "Could not find <folder>". There is still one small "bug" in this scenario though: the back button will have the graphic of being pressed down until you navigate to another folder. I can look into it.
(Didn't test the patch yet). Just noticed: When you press the "go up" button (to go to a non-existing directory), the error is shown. But when you press "go back" button (to go to a non-existing directory), this crash occur. One code may probably be used to handle both cases.
Pushed in 6829079.
*** Bug 9805 has been marked as a duplicate of this bug. ***