Skip to content

[Bug] Device nodes not being unhidden correctly #582

@dripsnek

Description

@dripsnek

During development of #518 it was found that when exiting InputPlumber using ctrl+c devices were not cleanly unhidden, leaving nodes in /dev/inputplumber/by-hidden

Image Image

This appears to be an issue in

let entries = fs::read_dir("/dev/inputplumber/sources")?;
as there is no test for the existence of the directory causing an unhandled error to be thrown before udevadm can run.

A tangent to this is that the existing usage of ctrl+c will only call unhide_all() which issues a udevadm trigger using the default ACTION=change, whereas some devices may require ACTION=add per unhide_device() for their udev rules to apply correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions