When unmounting a removable media the KDE performs check if there are some file opne on the device before performing the unmount. If the terminal window in the dolphin is open and the to be unmounted path is open the unmount process will be blocked.
This patch sets the terminal window current path to the home directory upon unmount request if the terminal directory is set to the mount path.
The unmount request could came from two sources:
- The user could hit right click on the media in the dolphin's places panel and hit unmount.
- The user could request an unmount from the indicator applet
This patch was originally written by Arjun AK for the KDE4 I think:
Now I rebased to the current dolphin version and fixed the KF5 related changes.
I have added handling the situations when the umounting of the device is not done from the same Dolphin window's places menu (from the notification tray for e.g.)