Commit c92380e7 authored by Christian Neumair's avatar Christian Neumair Committed by Christian Neumair

Make autorun work for blank CDs. Fixes #548221. Thanks to Jerry Yu

2008-09-01  Christian Neumair  <cneumair@gnome.org>

	* src/nautilus-application.c (volume_added_callback):
	Make autorun work for blank CDs. Fixes #548221. Thanks to Jerry Yu
	<jijun.yu@sun.com>.

svn path=/trunk/; revision=14557
parent d4980605
2008-09-01 Christian Neumair <cneumair@gnome.org>
* src/nautilus-application.c (volume_added_callback):
Make autorun work for blank CDs. Fixes #548221. Thanks to Jerry Yu
<jijun.yu@sun.com>.
2008-09-01 Christian Neumair <cneumair@gnome.org>
* libnautilus-private/nautilus-file-operations.c
......
......@@ -1345,6 +1345,12 @@ volume_added_callback (GVolumeMonitor *monitor,
g_volume_should_automount (volume) &&
g_volume_can_mount (volume)) {
nautilus_file_operations_mount_volume (NULL, volume, TRUE);
} else {
/* Allow nautilus_autorun() to run. When the mount is later
* added programmatically (i.e. for a blank CD),
* nautilus_autorun() will be called by mount_added_callback(). */
nautilus_allow_autorun_for_volume (volume);
nautilus_allow_autorun_for_volume_finish (volume);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment