QMK currently uses uf2conf.py as part of its workflow to convert and eventually deploy firmware. It was noted by a few users on our Discord that on some Linux distributions, it failed to find the auto-mounted directory.
This PR adds the additional search directory /run/media/<user>/ while also filtering to ensure the end list is only directories, and handling the uncaught exception when /media/ does not exist.
QMK currently uses
uf2conf.py
as part of its workflow to convert and eventually deploy firmware. It was noted by a few users on our Discord that on some Linux distributions, it failed to find the auto-mounted directory.This PR adds the additional search directory
/run/media/<user>/
while also filtering to ensure the end list is only directories, and handling the uncaught exception when/media/
does not exist.