[mythtv-commits] Ticket #9519: [PATCH] Use DBus to detect device changes
MythTV
noreply at mythtv.org
Thu Jun 9 19:40:19 UTC 2011
#9519: [PATCH] Use DBus to detect device changes
-------------------------------------------------+-------------------------
Reporter: Lawrence Rust <lvr@…> | Owner: stuartm
Type: Patch - Feature | Status: closed
Priority: minor | Milestone: 0.25
Component: MythTV - General | Version: Trunk
Severity: medium | Head
Keywords: DBus MediaMonitor UDev | Resolution: fixed
| Ticket locked: 0
-------------------------------------------------+-------------------------
Changes (by Github):
* status: assigned => closed
* resolution: => fixed
* milestone: unknown => 0.25
Comment:
Use DBUS to detect media insertion or removal
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.
Closes #9519
Signed-off-by: Stuart Morgan <smorgan at mythtv.org>
Branch: master
Changeset: 06a98ff94bfff5836945c92fb1b49c9002e9015d
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9519#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list