[Python] (auto-)mount (usb-)drives through udisk2 dbus api from python

Discussão em 'Python' iniciado por Stack, Maio 21, 2025.

  1. Stack

    Stack Membro Participativo

    I've got a python daemon that controls an audio player. Now I want this daemon to monitor USB disks inserted and add their content to the mpd media library.

    One part of this is a udisk client that waits for disks inserted and then immediately mounts them.

    I want to mount the disks read-only, so there won't be any data corruption if I unplug the the disk without unmounting or shutting down first.

    Continue reading...

Compartilhe esta Página