[mythtv-commits] Ticket #2388: fall back to ~/.lircrc if ~/.mythtv/lircrc doesn't exist

MythTV mythtv at cvs.mythtv.org
Thu Sep 14 08:53:08 UTC 2006


#2388: fall back to ~/.lircrc if ~/.mythtv/lircrc doesn't exist
-----------------------------------------+----------------------------------
 Reporter:  tino.keitel+mythtv at tikei.de  |       Owner:  ijr    
     Type:  enhancement                  |      Status:  new    
 Priority:  minor                        |   Milestone:  unknown
Component:  mythtv                       |     Version:  0.20.1 
 Severity:  medium                       |  
-----------------------------------------+----------------------------------
 Hi,

 MythTV expects the lirc config file in ~/.mythtv/lircrc. All other
 clients I know of use ~/.lircrc.

 There exists a useful daemon called lircrcd that syncs the current lirc
 mode between clients. Otherwise it can happen that simulatous running
 clients are in inconsistent modes.

 The lircrcd creates a socket to communicate with the other lircrcds.
 The name of the socket is the name of the config file, with a 'd'
 appended. So other clients will use ~/.lircrcd as the socket name, but
 MythTV will use ~/.mythtv/lircrcd, so the lircrcd for MythTV can not
 communicate with the other daemons.

 I tried to fix this my creating a symlink from ~/.mythtv/lircrcd to
 ~/.lircrcd to make sure that the lircrcd always uses the same socket, but
 sometimes the symlink disappears and the socket in ~/.mythtv/ will be
 created again. In this case I have to remove it and re-create the symlink.
 I think this is not really a solution.

 Attached is a patch that checks if ~/.mythtv/lircrc exists. If it does, it
 will be used. If not, ~/.lircrc will be used.

 This enables users to benefit from lircrcd, but won't change the existing
 behaviour for users with a ~/.mythtv/lircrc file.

 Regards,
 Tino

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2388>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list