Fix bug 158264 - Terminal panel (konsole part) blocks the umount of removable media
Review Request #121613 - Created Dec. 20, 2014 and discarded
Unmounting will fail if you are currently inside the mount point with the terminal kept opened. Therfore before attempting to unmount, we need to change the directory on the terminal.
Everything seems to work properly. Didn't find any view-terminal sync issues.
Thanks for the patch :)
The current solution only fixes the problem only when you unmount the storage in Dolphin, if you try it with the device
notifier it will still block, right?
I wounder if we can use the teardownRequested(udi) from Solid::StorageAccess. (I can't find any information if this signal is triggered
before Solid checks if the storage is currently in use or if it first triggers this signal - I assume the latter one)
We can then add a url redirection request signal in Dolphin's folder panel and go through each tab and check if the view should be redirected.
This will replace the terminal goHome.
What do you think?