Opened 14 years ago

Closed 14 years ago

#2388 closed enhancement (fixed)

fall back to ~/.lircrc if ~/.mythtv/lircrc doesn't exist

Reported by: tino.keitel+mythtv@… Owned by: Anduin Withers
Priority: minor Milestone: unknown
Component: mythtv Version: 0.20.1
Severity: medium Keywords:
Cc: Ticket locked: no

Description

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

Attachments (1)

lircrc-path-fallback.diff (775 bytes) - added by tino.keitel+mythtv@… 14 years ago.
add fallback to ~/.lirc

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by tino.keitel+mythtv@…

Attachment: lircrc-path-fallback.diff added

add fallback to ~/.lirc

comment:1 Changed 14 years ago by Anduin Withers

Owner: changed from Isaac Richards to Anduin Withers

comment:2 Changed 14 years ago by Anduin Withers

Resolution: fixed
Status: newclosed

(In [11252]) Closes #2388

Makes myth try ~/.lircrc if CONFIGDIR/lircrc doesn't exist.

Note: See TracTickets for help on using tickets.