Bug 475003

Summary: Slideshow wallpaper: "ReferenceError: wallpaper is not defined"
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: Image & Slideshow wallpaper pluginsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kde, notmart, qydwhotmail
Priority: NOR Keywords: qt6
Version First Reported In: 5.27.8   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:

Description Nate Graham 2023-09-28 21:54:31 UTC
~/kde/usr/lib64/libexec/kscreenlocker_greet --testing --theme ~/kde/src/plasma-workspace/lookandfeel
file:///home/nate/kde/usr6/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:70: ReferenceError: wallpaper is not defined
kscreenlocker_greet: Failed to load lockscreen QML, falling back to built-in locker


Thankfully the fallback theme works.
Comment 1 David Redondo 2023-10-11 07:40:54 UTC
I see the same error but it still works for without fallback

I think you are launching it wrong, "lookandfeel" is not a valid lookandfeel

if you want to test the specific theme from your source folder 

 bin/kscreenlocker_greet --testing --theme ~/kde/src/plasma-workspace/lookandfeel/org.kde.breeze

seems to work
Comment 2 Nate Graham 2023-10-11 13:56:16 UTC
I was indeed, but I found that myself intependently and fixed it yesterday. The error is still visible:

$  ~/kde/usr/lib64/libexec/kscreenlocker_greet --testing --theme ~/kde/src/plasma-workspace/lookandfeel/org.kde.breeze
file:///home/nate/kde/usr6/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:70: ReferenceError: wallpaper is not defined
kf.kirigami: Failed to find a Kirigami platform plugin
Locked at 1697031936
Failed to find shader "/home/nate/kde/src/plasma-workspace/lookandfeel/org.kde.breeze/contents/components/UserDelegate.frag.qsb"
ShaderEffect: Failed to deserialize QShader from /home/nate/kde/src/plasma-workspace/lookandfeel/org.kde.breeze/contents/components/UserDelegate.frag.qsb. Either the filename is incorrect, or it is not a valid .qsb file. In Qt 6 shaders must be preprocessed using the Qt Shader Tools infrastructure. The vertexShader and fragmentShader properties are now URLs that are expected to point to .qsb files generated by the qsb tool. See https://doc.qt.io/qt-6/qtshadertools-index.html for more information.
ShaderEffect: shader preparation failed for file:///home/nate/kde/src/plasma-workspace/lookandfeel/org.kde.breeze/contents/components/UserDelegate.frag.qsb


Failed to find shader "/home/nate/kde/src/plasma-workspace/lookandfeel/org.kde.breeze/contents/components/WallpaperFader.frag.qsb"
ShaderEffect: Failed to deserialize QShader from /home/nate/kde/src/plasma-workspace/lookandfeel/org.kde.breeze/contents/components/WallpaperFader.frag.qsb. Either the filename is incorrect, or it is not a valid .qsb file. In Qt 6 shaders must be preprocessed using the Qt Shader Tools infrastructure. The vertexShader and fragmentShader properties are now URLs that are expected to point to .qsb files generated by the qsb tool. See https://doc.qt.io/qt-6/qtshadertools-index.html for more information.
ShaderEffect: shader preparation failed for file:///home/nate/kde/src/plasma-workspace/lookandfeel/org.kde.breeze/contents/components/WallpaperFader.frag.qsb
Comment 3 Nate Graham 2023-10-11 13:56:26 UTC
However this is fixed by https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3388.