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

James Harrell jharrell at copernicusllc.com
Sun Feb 13 05:36:32 UTC 2005


This good enough?

--- lirc.cpp.orig	2005-02-12 22:22:28.000000000 -0500
+++ lirc.cpp.jeh	2005-02-12 22:20:16.000000000 -0500
@@ -38,7 +38,9 @@
     }

     /* parse the config file */
-    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) )
     {
          cerr << "Failed to read lirc config " << config_file << " for "
               << program << endl;



-----Original Message-----
From: mythtv-dev-bounces at mythtv.org
[mailto:mythtv-dev-bounces at mythtv.org]On Behalf Of Isaac Richards
Sent: Saturday, February 12, 2005 11:10 PM
To: Development of mythtv
Subject: Re: [mythtv] [PATCH] LIRC 0.7.0 & Myth 0.17 - use /etc/lircrc
if nonefound in home dir


On Saturday 12 February 2005 10:51 pm, James Harrell wrote:
> 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:

diff -u, please.

Isaac
_______________________________________________
mythtv-dev mailing list
mythtv-dev at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev



More information about the mythtv-dev mailing list