Closed probonopd closed 3 years ago
File > Eject: Whenever one or more folders is/are selected, we may want to check whether something is mounted at that location(s), and add a "Eject" menu item, with an action similar to libfm-qt/placesview.cpp
: op->unmount(mount);
Context menu > Eject in place of "Move to Trash": Whenever the right-click context menu is opened on one or more folders, we may might want to check whether something is mounted at that location(s), and change the context menu accordingly, showing "Eject" rather than "Move to Trash", with an action similar to libfm-qt/placesview.cpp
: op->unmount(mount);
What shall happen if a combination of files, folders and mountpoints is selected? (What happens on a Mac in this case)?
What shall happen if a combination of files, folders and mountpoints is selected? (What happens on a Mac in this case)?
Ejecting
Eject "<Name of volume>"
Eject
; for consistency I think the File menu should also have an item Eject
(on the Mac, the File menu has nothing)This feature has been imlpemented upstream now: Someone needs to analyze and backport the relevant portions of https://github.com/lxqt/libfm-qt/pull/660/files.
@moochris would you be interested in having a go at this? I think this is especially useful in conjunction with Spatial mode, because there you have no other way of ejecting/unmounting
Sure, I'll look at this next when I get some time.
If we had devices on the desktop then drag to trash/eject would be nicer 🙂
If we had devices on the desktop
This just takes changing a few lines (not much effort) as explained in https://github.com/helloSystem/Filer/issues/9:
But what we need is to have both devices and files/folders...
Turns out we can solve this by a simple text file:
Especially in Spatial mode there is currently no way to eject/unmount disks/loop-mounted partitions.
Whenever the user right-clicks on a directory, we should check whether something is mounted at that directory (a mountpoint) and if yes, offer "Eject" rather than "Move to Trash" in the context menu.