context menu contains "safely remove volume" even when this is not possible
Issue Description
When inserting/connecting a removable medium such as a DVD, its desktop icon's context menu offers the option for safe removal even when this fails since the device is in the process of being mounted.
Steps to Reproduce Issue
- make sure your system is configured to automatically mount removable media when they are inserted, and make sure removable media's icons are displayed on the desktop
- insert a storage medium such as a DVD into an attached drive (USB storage might also work, but if you have it automatically mount, time might be too short to observe the following effect)
- once the icon pops up on the desktop, while its file system is still being mounted, open its context menu
- select the "safely remove volume" entry
- a message comes up saying " could not be ejected" non-zero exit status, device or resource busy.
Expected Behavior
As long as mounting is in progress there should be no context menu entry to safely remove the volume if that is bound to fail anyway.
Additional Information
I am not sure whether the failure to eject is the bug or the fact that ejecting the medium is offered as an option while selecting that option will end up in an error.
Environment & Versions
- OS distribution and version: Manjaro Linux
- Overall Xfce version: 4.20.1
- xfdesktop version (git hash if not a release): 4.20.1
- Windowing system (X11/Wayland): X11
- Compositor and version (if Wayland):
- GTK Theme:
- Icon Theme:
- UI Scale Factor: