Ticket #9519 (closed Patch - Feature: fixed)
Opened 2 years ago
Last modified 2 years ago
[PATCH] Use DBus to detect device changes
|Reported by:||Lawrence Rust <lvr@…>||Owned by:||stuartm|
|Component:||MythTV - General||Version:||Master Head|
|Severity:||medium||Keywords:||DBus MediaMonitor UDev|
This patch upgrades libmyth/mediamonitor-unix.cpp to use the DBus message bus to detect changes to removable media.
Currently, to detect the insertion of USB drives and key-disks the code requires changes to udev configuration files, needing root permission, and is very Linux specific. This patch uses UDisks http://hal.freedesktop.org/docs/udisks/ messages which is a standard across many *nix systems. In addition the code is simpler, provides more information on the devices and most importantly needs no changes to system configuration. If the QT DBus module is not present the code will fallback to the current system.
comment:1 Changed 2 years ago by beirdo
- Owner set to stuartm
- Status changed from new to assigned
comment:2 Changed 2 years ago by Github
- Status changed from assigned to closed
- Resolution set to fixed
- Milestone changed from unknown to 0.25