autorunManager: Stop erring on the side of caution for network mounts
Every mount that we care about that's local should have a GVolume associated with it. https://bugzilla.gnome.org/show_bug.cgi?id=686241
This commit is contained in:
parent
45e64f453f
commit
8de4070f7f
@ -45,14 +45,12 @@ function isMountRootHidden(root) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isMountNonLocal(mount) {
|
function isMountNonLocal(mount) {
|
||||||
// If the mount doesn't have an associated volume, that means it could
|
// If the mount doesn't have an associated volume, that means it's
|
||||||
// be a remote filesystem. For certain kinds of local filesystems,
|
// an uninteresting filesystem. Most devices that we care about will
|
||||||
// like digital cameras and music players, there's no associated
|
// have a mount, like media players and USB sticks.
|
||||||
// gvfs volume, so err on the side of caution and assume it's a local
|
|
||||||
// filesystem to allow the prompt.
|
|
||||||
let volume = mount.get_volume();
|
let volume = mount.get_volume();
|
||||||
if (volume == null)
|
if (volume == null)
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
return (volume.get_identifier("class") == "network");
|
return (volume.get_identifier("class") == "network");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user