This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

Removable devices hotplug

The experience with hotplug and removable devices is still not optimal in GNOME 3.0. Here's a page to describe the problem space and discuss a design to make it better.

Participants

Cosimo Cecchi, William Jon McCann.

Status

Relevant art

GNOME 3.0 (2.x is quite similar)

Ejecting

http://people.gnome.org/~cosimoc/autorun-design/autorun-eject.png

Autorun

What we do right now in GNOME 3.0 by default:

http://people.gnome.org/~cosimoc/autorun-design/autorun1.png http://people.gnome.org/~cosimoc/autorun-design/autorun2.png http://people.gnome.org/~cosimoc/autorun-design/autorun3.png http://people.gnome.org/~cosimoc/autorun-design/autorun4.png

http://www.use.com/images/s_3/4b8bafa16a8515002514.jpg

Mac OSX

Ejecting

They have a desktop, so you can always use the context menu on the desktop icon.

http://www.chemdoodle.com/wp-content/uploads/2010/05/eject.png http://etc.usf.edu/te_mac/hardware/i/removeusb2.jpg http://www.betalogue.com/images/uploads/macosx/MacOSX-EjectMenu.gif

Autorun

http://mactrainingguide.com/wp-content/uploads/mac-os-x_system_hardware_1.jpg http://mac.tuneclone.com/images/blank-cd-prompt.png

Windows 7

Ejecting

http://windows7themes.net/pics/safely-remove-hardware-windows-7.jpg http://img18.imageshack.us/img18/6029/untitled1fr5.png

Autorun

http://cdn2.windows7news.com/wp-content/uploads/2009/04/clip_image002_thumb.gif http://www.f-secure.com/weblog/archives/Windows_7_Autoplay_03.png http://www.correctmyphotos.com/wp-content/uploads/2010/01/Autoplay-popup.jpg http://0.tqn.com/d/pcsupport/1/0/D/B/-/-/autoplay-windows-7.jpg

Discussion

Ejecting

Autorun

Comments

Tentative Design

Attaching a device

http://people.gnome.org/~cosimoc/hotplug/1-notice-open-2-eject.jpg

The primary goals of the UI when attaching a device are Notice and Open. The design implements this with a notification, which pops up (notice) and offers a list of the default applications for the sniffed content types offered by the device (open).

When clicking empty space in the notification (i.e. also the device icon/name), it could probably run the default action (i.e. the application listed as first in the list, if there are multiple content types detected), or it could close the notification, as in "ignore now". Otherwise the notification will automatically expire (it's transient).

If the device is a special one (i.e. a phone, or a music player), we have the low-level infrastructure already that takes care of listing the possible content types for the device. It would be great to be able to sniff content types also in case when regular drives are plugged in, like e.g. Windows does. This means attaching a thumb drive with some pictures and music files in it should still offer Photos and Music as possible choices. Bonus points if it orders the content types based on the amount of files for each content type. I heard Tracker has a component to scan removable media on insertion; migth be worth investigating.

A secondary goal is still Eject here, and the notification should have a button to do that directly from there.

Ejecting a device or listing devices

http://people.gnome.org/~cosimoc/hotplug/1-eject-list-2-open.jpg

The primary goals of the UI are Eject and List. The design implements this using an item in the message tray (similar to WebOS) containing all the attached devices plugged during the session (this means we should ignore e.g. devices mounted by other users on the system in different sessions, or drives mounted at a system level via fstab or whatever). The Eject icon, should obviously do what it says.

A secondary goal is still to repeat the Open action here, so clicking on the device icon/name should probably open the default action determined at the previous step.

See Also


2024-10-23 11:03