[gnome-shell/gnome-3-8] Make autorun notifications work
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-8] Make autorun notifications work
- Date: Tue, 2 Jul 2013 01:48:23 +0000 (UTC)
commit 1f6811ca06164804afddf7de91f1d4de2f63ece3
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jul 1 16:52:26 2013 -0400
Make autorun notifications work
The code that checks for various conditions is confusing and
undercommented. It appears one of the recent refactorings
inadvertedly inverted the sense of the 'hidden mountpoint'
check, and caused autorun to not work for anything that does
not have a 'native root' - which is pretty much all volumes
implemented by gvfs.
https://bugzilla.gnome.org/show_bug.cgi?id=703418
js/ui/components/autorunManager.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js
index 88b08a2..2667c02 100644
--- a/js/ui/components/autorunManager.js
+++ b/js/ui/components/autorunManager.js
@@ -31,7 +31,7 @@ function shouldAutorunMount(mount, forTransient) {
if (!volume || (!volume.allowAutorun && forTransient))
return false;
- if (!root.is_native() || isMountRootHidden(root))
+ if (root.is_native() && isMountRootHidden(root))
return false;
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]