Skip to content

canonical-system-enablement/udisks2-examples

Repository files navigation

udisks2-examples

Example code for interfacing with udisks2

Building

Install the udisks development files

$ sudo apt install libudisks2-dev

Build the source

$ make

Running the examples

query-block-devices

List info about the block devices on your system

$ ./query-block-devices

detect-hotplug

Detect when a device such as a USB thumb drive is plugged into or removed from your system

$ ./detect-hotplug

probe-usb-devices

List info about the USB-attached storage on your system

$ ./probe-usb-devices

About

Example code for interfacing with udisks2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published