This uses new AutostartCondition support that just landed in gnome-session.
Copied from gnome-media. See that module for git history.