qmk/qmk_firmware

[Bug] QMK doctor only checks /etc/udev/rules.d for udev rules.

Open

#9,906 建立於 2020年8月1日

在 GitHub 查看
 (3 留言) (0 反應) (1 負責人)C (43,867 fork)batch import
bughelp wanted

倉庫指標

Star
 (20,368 star)
PR 合併指標
 (平均合併 20天 9小時) (30 天內合併 27 個 PR)

描述

The doctor command in qmk python library fails to find the correct rules in /usr/lib/udev/rules.d directory.

Describe the Bug

The doctor command in QMK python library only checks a hard coded /etc/udev/rules.d for udev rules. Which works fine if you put your rules there. But these rules can also be located in /usr/lib/udev/rules.d; and actually is the preferred location for linux package managers to drop their udev rules. I recently packaged the python client in archlinux; and also provided neccessary udev rules along with it. After switching to these rules, I noticed I was getting warnings from qmk doctor when I had the correct udev rules in place.

System Information

  • Keyboard: N/A
  • Operating system: Archlinux
  • AVR GCC version: 10.1.0
  • ARM GCC version: 10.1.0
  • QMK Firmware version: 0.9.46
  • Any keyboard related software installed?
    • Karabiner
    • Other:
    • AutoHotKey

Additional Context

I also implemented a quick fix; and issued the pull request #9907

貢獻者指南