udisks
0.5.0, released 6 weeks ago by canonical.com
Dart client for interacting with the UDisks D-Bus service on Linux.
What it does
Connects to the UDisks daemon via D-Bus to query version, supported filesystems, and manage disks and storage devices. Provides a simple API for Linux desktop applications to monitor and manipulate storage.
AI-written summary of version 0.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building Linux desktop apps that need to query or control disks
- Need D-Bus access to UDisks for storage management
Skip it when
- Targeting mobile, web, or non‑Linux platforms
- You need a cross‑platform storage solution
Strengths
- Lightweight and focused on UDisks
- Uses the dbus package for native D-Bus communication
- Simple, imperative API
Weaknesses
- Linux‑only; no support for other OSes
- Limited documentation beyond README
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Just add the package; ensure D-Bus is available on the Linux system
import 'package:udisks/udisks.dart';
var client = UDisksClient();
await client.connect();
print('Running UDisks ${client.version}');
print('Supported filesystems: ${client.supportedFilesystems.join(' ')}');
await client.close();Alternatives
Packages that do the same job and could replace udisks.
- mobile_device_identifier
Provides a persistent unique device identifier for Android and iOS.
74Compare - flutter_background_service_platform_interface
Platform interface for flutter_background_service plugin
50Compare
Works with
Packages commonly used together with udisks: ones it builds on, ones built on it, and its own family.
- dbusudisks depends on itNative Dart D-Bus client for Linux and Windows.
- nmSame familyClient for interacting with Linux NetworkManager via D-Bus
- gsettingsSame familyClient to access GSettings database for storing user preferences on Linux.
- geoclueSame familyDart client for the GeoClue D-Bus geolocation service on Linux.
- upowerSame familyProvides a client to connect to UPower for Linux power management.
- bluezSame familyA Dart client for interacting with the Linux BlueZ Bluetooth stack via D-Bus.
- desktop_notificationsSame familySend Linux desktop notifications via DBus.
- xdg_desktop_portalSame familyA native Dart implementation of portals for Linux desktop applications.