nautilus r13694 - in trunk: . libnautilus-private
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r13694 - in trunk: . libnautilus-private
- Date: Mon, 4 Feb 2008 15:51:14 +0000 (GMT)
Author: alexl
Date: Mon Feb 4 15:51:13 2008
New Revision: 13694
URL: http://svn.gnome.org/viewvc/nautilus?rev=13694&view=rev
Log:
2008-02-04 Alexander Larsson <alexl redhat com>
* libnautilus-private/nautilus-autorun.c:
Don't autorun non-local mounts.
Modified:
trunk/ChangeLog
trunk/libnautilus-private/nautilus-autorun.c
Modified: trunk/libnautilus-private/nautilus-autorun.c
==============================================================================
--- trunk/libnautilus-private/nautilus-autorun.c (original)
+++ trunk/libnautilus-private/nautilus-autorun.c Mon Feb 4 15:51:13 2008
@@ -1223,8 +1223,9 @@
}
/* only open the folder once.. */
- if (open_folder)
+ if (open_folder) {
autorun_open_folder_for_mount (data);
+ }
g_object_unref (data->mount);
g_free (data);
@@ -1236,10 +1237,9 @@
AutorunData *data;
if (!should_autorun_mount (mount) ||
- eel_preferences_get_boolean (NAUTILUS_PREFERENCES_MEDIA_AUTORUN_NEVER))
+ eel_preferences_get_boolean (NAUTILUS_PREFERENCES_MEDIA_AUTORUN_NEVER)) {
return;
-
- /* TODO: only do this for local mounts */
+ }
/* Sniff the newly added mount to generate x-content/ types;
* we do this asynchronously (in another thread) since it
@@ -1359,7 +1359,12 @@
break;
}
}
-
+
+ if (!g_file_is_native (root)) {
+ /* only do autorun on local files */
+ /* TODO: Maybe we should do this on some gvfs mounts? like gphoto: ? */
+ ignore_autorun = TRUE;
+ }
g_object_unref (root);
return !ignore_autorun;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]