This was suggested over on Twitter, and it makes a lot of sense. https://twitter.com/probonopd/status/1056536423619325953 When unmounting a network share, disk, or other device, any Thunar windows that are open at that location should be automatically closed.
Currently windows/tabs pointing to the mount default to $HOME after unmounting ... so the current situation is not too bad :) Yes, I would agree that it would be superior to close them instead.
It is as easy as to add a call to thunar_window_action_close_window in thunar_window_device_pre_unmount or at thunar_window_device_changed when it checks that the root is invalid. All in all, I don't like this behavior, returning to home is preferable to me.
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/220. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev