Bug 462738 - SDDM can't load Breeze theme with system-provided plasma-workspace
Summary: SDDM can't load Breeze theme with system-provided plasma-workspace
Status: REPORTED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-07 11:17 UTC by ratijas
Modified: 2022-12-07 20:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ratijas 2022-12-07 11:17:01 UTC
SUMMARY

Apparently, install-sessions.sh can't provide SDDM with a self-contained environment for loading Breeze theme/look-and-feel. System packages are still required, and if they are not found — SDDM will fail to load Breeze, and fallback to default theme with a bunch of error messages.

STEPS TO REPRODUCE
1. $ pacman -Rndd plasma-workspace
2. $ kdesrc-build ${your-rebuild-world-arguments-here}
3. $ $HOME/kde/build/kde/workspace/plasma-workspace/login-sessions/install-sessions.sh
4. Reboot

OBSERVED RESULT

Default SDDM theme loaded, and a bunch of error messages printed to the journal:

QObject: Cannot create children for a parent that is in a different thread.
    (Parent is QGuiApplication(0x7ffe66a8bed0), parent's thread is QThread(0x55aaf623a280), current thread is QThread(0x55aaf637d040)
QObject: Cannot create children for a parent that is in a different thread.
    (Parent is QGuiApplication(0x7ffe66a8bed0), parent's thread is QThread(0x55aaf623a280), current thread is QThread(0x55aaf637d040)
QObject: Cannot create children for a parent that is in a different thread.
    (Parent is QGuiApplication(0x7ffe66a8bed0), parent's thread is QThread(0x55aaf623a280), current thread is QThread(0x55aaf637d040)
QObject::installEventFilter(): Cannot filter events for objects in a different thread.
file:///usr/local/kde/share/sddm/themes/breeze/Main.qml:110:9: Type WallpaperFader unavailable 
            WallpaperFader { 
            ^
file:///usr/local/kde/share/sddm/themes/breeze/components/WallpaperFader.qml:13:1: module "org.kde.plasma.private.sessions" is not installed 
    import org.kde.plasma.private.sessions 2.0 
    ^
file:///usr/local/kde/share/sddm/themes/breeze/Main.qml:110:9: Type WallpaperFader unavailable 
            WallpaperFader { 
            ^
file:///usr/local/kde/share/sddm/themes/breeze/components/WallpaperFader.qml:13:1: module "org.kde.plasma.private.sessions" is not installed 
    import org.kde.plasma.private.sessions 2.0 
    ^
Fallback to embedded theme
file:///usr/lib/qt/qml/SddmComponents/LayoutBox.qml:35:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/SddmComponents/PictureBox.qml:80:9: QML Image: Cannot open: qrc:/var/lib/AccountsService/icons/dude2008
file:///usr/lib/qt/qml/SddmComponents/PictureBox.qml:80:9: QML Image: Cannot open: qrc:/var/lib/AccountsService/icons/ratijas
file:///usr/lib/qt/qml/SddmComponents/PictureBox.qml:80:9: QML Image: Cannot open: qrc:/var/lib/AccountsService/icons/jndi
qrc:/theme/Main.qml:41:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
Adding view for "DP-2" QRect(0,0 1920x1080)
Loading file:///usr/local/kde/share/sddm/themes/breeze/Main.qml...
file:///usr/local/kde/share/sddm/themes/breeze/Main.qml:110:9: Type WallpaperFader unavailable 
            WallpaperFader { 
            ^
file:///usr/local/kde/share/sddm/themes/breeze/components/WallpaperFader.qml:13:1: module "org.kde.plasma.private.sessions" is not installed 
    import org.kde.plasma.private.sessions 2.0 
    ^
file:///usr/local/kde/share/sddm/themes/breeze/Main.qml:110:9: Type WallpaperFader unavailable 
            WallpaperFader { 
            ^
file:///usr/local/kde/share/sddm/themes/breeze/components/WallpaperFader.qml:13:1: module "org.kde.plasma.private.sessions" is not installed 
    import org.kde.plasma.private.sessions 2.0 
    ^
Fallback to embedded theme
file:///usr/lib/qt/qml/SddmComponents/LayoutBox.qml:35:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib/qt/qml/SddmComponents/PictureBox.qml:80:9: QML Image: Cannot open: qrc:/var/lib/AccountsService/icons/dude2008
file:///usr/lib/qt/qml/SddmComponents/PictureBox.qml:80:9: QML Image: Cannot open: qrc:/var/lib/AccountsService/icons/ratijas
file:///usr/lib/qt/qml/SddmComponents/PictureBox.qml:80:9: QML Image: Cannot open: qrc:/var/lib/AccountsService/icons/jndi
qrc:/theme/Main.qml:41:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
Adding view for "DP-3" QRect(1920,0 3840x2160)
Message received from daemon: Capabilities
Message received from daemon: HostName


EXPECTED RESULT

SDDM should be running themes from dev setup without system packages.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: git-master
Qt Version: 5.15.7
Kernel Version: 6.0.11-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: G752VT
System Version: 1.0
Comment 1 Nate Graham 2022-12-07 20:34:24 UTC
Looks like your self-built session ins installed to /usr/local? Not sure this is a kdesrc-build issue, more like an issue either in SDDM or in plasma-workspace, where all this stuff works.