diff --git a/src/neighbor/plugins/UdisksNeighborPlugin.cxx b/src/neighbor/plugins/UdisksNeighborPlugin.cxx index 1e14bea44..b5927fd6c 100644 --- a/src/neighbor/plugins/UdisksNeighborPlugin.cxx +++ b/src/neighbor/plugins/UdisksNeighborPlugin.cxx @@ -57,7 +57,8 @@ struct UdisksObject { :path(_path) {} bool IsValid() const noexcept { - return !drive_id.empty() || !block_id.empty(); + return is_filesystem && + (!drive_id.empty() || !block_id.empty()); } std::string GetUri() const noexcept {