stefan-langenmaier / brother-overlay

Portage overlay for Brother printer and scanner software
GNU General Public License v3.0
34 stars 41 forks source link

Fix printer detection in cupswrapper script #121

Open nvinson opened 3 weeks ago

nvinson commented 3 weeks ago

Fix printer detection in cupswrapper/brother_lpdwrapper_mfcl3770. Without fix, the script fails to detect the printer name correctly and instead generates the name 'optbrotherPrintersmfcl3770cdw'. This is because the regular expressions the wrapper uses expects the symlink in /usr/libexec/cups/filter/brother_lpdwrapper_mfcl3770cdw to have an absolute target instead of a relative one.

Because there is likely to always be a scenario where the regular expressions in brother_lpdwrapper_mfcl3770 don't work, the solution here is to remove the regular expression logic and hardcode the printer name to mfcl3770cdw.