Opened 19 years ago
Closed 19 years ago
#2388 closed enhancement (fixed)
fall back to ~/.lircrc if ~/.mythtv/lircrc doesn't exist
| Reported by: | 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

add fallback to ~/.lirc