[mythtv-firehose] mythtv/master commit: 06a98ff94 by Lawrence Rust (no github username)
MythTV
noreply at mythtv.org
Thu Jun 9 19:40:19 UTC 2011
Author: Lawrence Rust <lvr at softsystem.co.uk>
Change Date: 2011-06-09T12:03:02-07:00
Push Date: 2011/06/09 12:40:12 -0700
Repository: mythtv
Branch: master
New Revision: 06a98ff94bfff5836945c92fb1b49c9002e9015d
Changeset: https://github.com/MythTV/mythtv/commit/06a98ff94
Log:
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>
Modified:
mythtv/libs/libmyth/libmyth.pro
mythtv/libs/libmyth/mediamonitor-unix.cpp
mythtv/libs/libmyth/mediamonitor-unix.h
More information about the mythtv-firehose
mailing list