Skip to content
pubscout

udisks

0.5.0, released 6 weeks ago by canonical.com

Dart client for interacting with the UDisks D-Bus service on Linux.

$ flutter pub add udisks
Source repository

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.

Works with

Packages commonly used together with udisks: ones it builds on, ones built on it, and its own family.