Only camers with ID_GPHOTO2=1 are considered by the backend so we might as well just query for those in the first place.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
Frameworks - Commits
- R245:9a54ef65305f: [UDevManager] Also explicitly query for cameras
Forgot that when resurrecting David's previous patch
My phone still shows up fine as "Camera" when connected via PTP instead of MTP
Saves 70ms time on plasmashell startup for me (hotplugengine)
Diff Detail
Diff Detail
- Repository
- R245 Solid
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
didn't we establish that devicesByProperty didn't work?
It didn't work for media players where we query for QVariant() which turns into nullptr since there is no documentation on what that actually does (remove filter or check for property existance). Explicitly checking for 1 which we do here works fine, though.