[mythtv] [PATCH] LIRC 0.7.0 & Myth 0.17 - use /etc/lircrc if none found in home dir

James Harrell jharrell at copernicusllc.com
Sun Feb 13 03:51:43 UTC 2005


Hi Folks,

This patch to libs/libmyth/lirc.cpp allows the system to utilize
the /etc/lircrc file if ~/.mythtv/lircrc doesn't exist. Makes life
a little easier when trying to figure out why a remote doesn't work.

I believe LIRC 0.7.0 added this feature in their tree, though
applications that use the client-libs directly need to handle it
similarly on their own.

Sorry I don't have the time (skills) to make a proper patch
format, but here's the straight diff:

FILE: mythtv-0.17/libs/libmyth/lirc.cpp
41c41,43
<     if (lirc_readconfig((char *)config_file.latin1(), &lircConfig, NULL))
---
>     /* JEH: Sat Feb 12 19:54:17 EST 2005 also check system wide
/etc/lircrc */
>     if ((lirc_readconfig((char *)config_file.latin1(), &lircConfig,
NULL)!=0)
> 	&& (lirc_readconfig((char *)"/etc/lircrc", &lircConfig, NULL)!=0) )

The Hauppage Grey/Black remote lircrc and lircd.conf could use a bit
of tweaks, I'll send those along when I'm done.

Regards,
James



More information about the mythtv-dev mailing list