Instead of focus shifting to File System > media > user when ejecting a flash drive or File System > mnt > ... when ejecting an usb hard disk, the safest thing would be to jump to Home.
Actually I thought we already have that behaviour :) Though looks like I am wrong, it seems to depend on the current directory: - If the the root folder of the flash drive is opened, a jump to File System > media > somedrive will occur on eject/unmount. - If some deeper folder of the flash drive is opened, a jump to Home will occur on eject/unmount. Patches would be welcome !
I cannot reproduce this bug. The jump to Home always happens.
Created attachment 9594 patch Implements missing check.
Theo Linkspfeifer referenced this bugreport in commit c5c3aae0864c73755324154b5f970283cf4829dd Always jump to Home when ejecting a currently viewed device (Bug #16504) https://git.xfce.org/xfce/thunar/commit?id=c5c3aae0864c73755324154b5f970283cf4829dd
Theo Linkspfeifer referenced this bugreport in commit e0a3676177d09ce4f19e188634d16e10716b39f6 Always jump to Home when ejecting a currently viewed device (Bug #16504) https://git.xfce.org/xfce/thunar/commit?id=e0a3676177d09ce4f19e188634d16e10716b39f6
Well spotted, thanks for the fix ! Pushed to master and 4.14 branch