[gnome-shell] autorun: change logic for ignoring volumes



commit 0e3795b2f32ab7fa6694b2aece45a8f43902cc5f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Jun 19 15:08:45 2012 -0400

    autorun: change logic for ignoring volumes
    
    Previously, a volume was being ignored from autorun if one of these two
    conditions were met:
    - its mount root file had a native scheme and was mounted in a
      non-hidden location
    - it had a volume that could have been automounted, and had a flag set
      by the shell to allow autorun
    
    In order to effectively ignore volumes that we don't mount ourselves
    from our notification system, we have to meet both conditions at the
    same time instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660595

 js/ui/autorunManager.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/autorunManager.js b/js/ui/autorunManager.js
index 9fbb26e..9d39690 100644
--- a/js/ui/autorunManager.js
+++ b/js/ui/autorunManager.js
@@ -27,7 +27,7 @@ function ignoreAutorunForMount(mount) {
     let root = mount.get_root();
     let volume = mount.get_volume();
 
-    if ((root.is_native() && !isMountRootHidden(root)) ||
+    if ((root.is_native() && !isMountRootHidden(root)) &&
         (volume && volume.allowAutorun && volume.should_automount()))
         return false;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]