D11323: [UDevManager] Also explicitly query for cameras
This revision was automatically updated to reflect the committed changes. Closed by commit R245:9a54ef65305f: [UDevManager] Also explicitly query for cameras (authored by broulik). REPOSITORY R245 Solid CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D11323?vs=29489=29583 REVISION DETAIL https://phabricator.kde.org/D11323 AFFECTED FILES src/solid/devices/backends/udev/udevmanager.cpp To: broulik, #frameworks, davidedmundson Cc: michaelh, ngraham
D11323: [UDevManager] Also explicitly query for cameras
davidedmundson accepted this revision. This revision is now accepted and ready to land. REPOSITORY R245 Solid REVISION DETAIL https://phabricator.kde.org/D11323 To: broulik, #frameworks, davidedmundson Cc: michaelh, ngraham
D11323: [UDevManager] Also explicitly query for cameras
broulik added a comment. > 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. REPOSITORY R245 Solid REVISION DETAIL https://phabricator.kde.org/D11323 To: broulik, #frameworks, davidedmundson Cc: michaelh, ngraham
D11323: [UDevManager] Also explicitly query for cameras
davidedmundson added a comment. didn't we establish that devicesByProperty didn't work? REPOSITORY R245 Solid REVISION DETAIL https://phabricator.kde.org/D11323 To: broulik, #frameworks, davidedmundson Cc: michaelh, ngraham
D11323: [UDevManager] Also explicitly query for cameras
broulik created this revision. broulik added reviewers: Frameworks, davidedmundson. Restricted Application added a project: Frameworks. broulik requested review of this revision. REVISION SUMMARY Only camers with ID_GPHOTO2=1 are considered by the backend so we might as well just query for those in the first place. TEST PLAN 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) REPOSITORY R245 Solid REVISION DETAIL https://phabricator.kde.org/D11323 AFFECTED FILES src/solid/devices/backends/udev/udevmanager.cpp To: broulik, #frameworks, davidedmundson Cc: michaelh, ngraham