GNOME Bugzilla – Bug 723121
GtkPlacesSidebar: pressing "eject" icon does not power down drive
Last modified: 2014-01-29 19:01:38 UTC
Today (on at least Fedora 20) if I attach a removable USB HDD or a USB stick pressing the "eject" icon in GNOME Shell causes the device to be powered down virtue of GNOME Shell using g_drive_stop() [1]. However, if I do the same on GtkPlacesSidebar (e.g. if press the "eject" icon) although it does disappear from the GUI, the device is NOT powered down. This is because GtkPlacesSidebar calls g_drive_eject() instead of g_drive_stop(). (Note, however, that GktPlacesSidebar offers a "safely remove" option hidden behind a context menu when right-clicking. But this is mostly worthless.) The GNOME Shell behavior is the correct one because it's what people except, e.g. HDDs spin down, LEDs on USB sticks are turned off etc. We should fix GtkPlacesSidebar to do the same. [1] : ... of course, it only does this if g_drive_can_stop() returns TRUE. Also note that g_drive_can_stop() is being very careful here, see https://git.gnome.org/browse/gvfs/tree/monitor/udisks2/gvfsudisks2drive.c?id=1.19.4#n237 in particular it ensures that optical drives eject their medium instead of powering them down.
Would it make sense to have that in gtk-3-10 as well?
(In reply to comment #1) > Would it make sense to have that in gtk-3-10 as well? Seems like a good idea to me.
already done
Cool - thanks for fixing this so quickly btw!