Bug 433983

Summary: Widget explorer does not list some widgets despite being in formfactor
Product: [Plasma] plasmashell Reporter: Bhushan Shah <bshah>
Component: Widget Explorer sidebarAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.21.2   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.21.3
Sentry Crash Report:

Description Bhushan Shah 2021-03-05 07:49:14 UTC
SUMMARY

On phone some widgets are not listed, despite having matching formfactor entries

STEPS TO REPRODUCE
1. export PLASMA_PLATFORM=phone:handheld
2. plasmashell
3. Open widget explorer

OBSERVED RESULT

4. Notice that analog clock is not listed

EXPECTED RESULT

Analog clock should be listed, given it have handset in X-KDE-FormFactors key
Comment 1 Bug Janitor Service 2021-03-05 11:06:16 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/695
Comment 2 Marco Martin 2021-03-05 11:28:16 UTC
Git commit 9dba1a78a3519cad2aa9e00d0ea31376a457e4e2 by Marco Martin.
Committed on 05/03/2021 at 11:27.
Pushed by mart into branch 'master'.

proper form factor filtering

consider an applet acceptable for the formfactor if at least one
of its formfactors are contained in KDeclarative::runtimePlatform

or if either KDeclarative::runtimePlatform or applet formfactors
are empty.
(before informFactor failed if even one of the applet supported
formfactors was not in runtimePlatform

M  +6    -4    components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/9dba1a78a3519cad2aa9e00d0ea31376a457e4e2
Comment 3 Marco Martin 2021-03-05 11:29:26 UTC
Git commit 78f885a17682356355b2368b095bf9290c49127d by Marco Martin.
Committed on 05/03/2021 at 11:29.
Pushed by mart into branch 'Plasma/5.21'.

proper form factor filtering

consider an applet acceptable for the formfactor if at least one
of its formfactors are contained in KDeclarative::runtimePlatform

or if either KDeclarative::runtimePlatform or applet formfactors
are empty.
(before informFactor failed if even one of the applet supported
formfactors was not in runtimePlatform

M  +6    -4    components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/78f885a17682356355b2368b095bf9290c49127d