Comment 5 for bug 425389

Revision history for this message
Jesus Miguel Mercado Murillo (jesusmmm) wrote :

Steps to reproduce the problem:

1. Install lirc_0.8.5-0ubuntu3.
2. Install gnome-lirc-properties_0.3.1-0ubuntu2.
3. Run gnome-lirc-properties and click Auto-detect button.

Actual results:

The /etc/hardware.conf file is changed, the REMOTE_LIRCD_ARGS="" line was replaced with REMOTE_LIRCD_ARGS="''" an the REMOTE_MODULES="" was replaced with REMOTE_MODULES="''".
$ sudo /etc/init.d/lirc start
 * Loading LIRC modules [ OK ]
 * Unable to load LIRC kernel modules. Verify your
 * selected kernel modules in /etc/lirc/hardware.conf

Expected results:
$ sudo /etc/init.d/lirc start
 * Loading LIRC modules [ OK ]
 * Starting remote control daemon(s) : LIRC [ OK ]

Now the /etc/init.d/lirc daemon can't start, because it does not understand the hardware.conf file

This is not a lirc bug, it's a gnome-lirc-properties bug. Because gnome-lirc-properties incorrectly changes the hardware.conf file.

Browsing in the gnome-lirc-properties source code, the shellquote.py file is the problematic.
When receives a "" string return "''".

I attach a patch that resolves the problem.