Skip to content

Commit 7741ae1

Browse files
authored
placesManager.js: Add mounts with no associated volume. (#13325)
This reverts part of af72ce0. While it likely doesn't affect anything in core Cinnamon (changing what isRemovable() checks would probably keep these mounts hidden anyhow), other applets might choose to display these. See linuxmint/nemo#3670. Ref: linuxmint/mint22.3-beta#67.
1 parent 640dad6 commit 7741ae1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

js/ui/placesManager.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,15 @@ PlacesManager.prototype = {
465465
}
466466
}
467467

468+
/* add mounts that have no volume (/etc/mtab mounts, ftp, sftp,...) */
469+
let mounts = this._volumeMonitor.get_mounts();
470+
for(let i = 0; i < mounts.length; i++) {
471+
if(mounts[i].get_volume())
472+
continue;
473+
474+
this._addMount(mounts[i]);
475+
}
476+
468477
/* We emit two signals, one for a generic 'all places' update
469478
* and the other for one specific to mounts. We do this because
470479
* clients like PlaceDisplay may only care about places in general

0 commit comments

Comments
 (0)