stepanzubkov / where-is-my-sddm-theme

:eyes: The most minimalistic and highly customizable SDDM theme.
MIT License
191 stars 10 forks source link

Theme is not working anymore: Main.qml: Library import requires a version #32

Closed GaetanLepage closed 2 months ago

GaetanLepage commented 4 months ago

Hi,

The theme has stopped working for me. Here is the log resulting from my trying the greeter in test-mode:

❮ sddm-greeter --test-mode --theme /run/current-system/sw/share/sddm/themes/where_is_my_sddm_theme/
High-DPI autoscaling Enabled
Reading from "/nix/store/w96iiqnpvs8qfs0prbqzvzi97bxx505d-desktops/share/wayland-sessions/sway.desktop"
Loading theme configuration from "/run/current-system/sw/share/sddm/themes/where_is_my_sddm_theme//theme.conf"
Socket error:  "QLocalSocket::connectToServer: Invalid name"
Loading file:///run/current-system/sw/share/sddm/themes/where_is_my_sddm_theme//Main.qml...
file:///run/current-system/sw/share/sddm/themes/where_is_my_sddm_theme//Main.qml: Library import requires a version
file:///run/current-system/sw/share/sddm/themes/where_is_my_sddm_theme//Main.qml: Library import requires a version
Fallback to embedded theme
file:///nix/store/c0d2m7313gsl4kbqjqvfryvqzmm4ji9q-sddm-unwrapped-0.21.0/lib/qt-5.15.12/qml/SddmComponents/LayoutBox.qml:35:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
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 2560x1440)
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

As a comparison, here is the log for the maya built-in theme, which works fine:

❯ sddm-greeter --test-mode --theme /run/current-system/sw/share/sddm/themes/maya
High-DPI autoscaling Enabled
Reading from "/nix/store/w96iiqnpvs8qfs0prbqzvzi97bxx505d-desktops/share/wayland-sessions/sway.desktop"
Loading theme configuration from "/run/current-system/sw/share/sddm/themes/maya/theme.conf"
Socket error:  "QLocalSocket::connectToServer: Invalid name"
Loading file:///run/current-system/sw/share/sddm/themes/maya/Main.qml...
file:///nix/store/c0d2m7313gsl4kbqjqvfryvqzmm4ji9q-sddm-unwrapped-0.21.0/lib/qt-5.15.12/qml/SddmComponents/LayoutBox.qml:35:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///run/current-system/sw/share/sddm/themes/maya/Main.qml:75:3: 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 2560x1440)
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

So the issue seems t be this Library import requires a version message that directly precedes the Fallback to embedded theme and is not present in the maya logs.

LorenRiccie commented 3 months ago

Same with X11

Socket error: "QLocalSocket::connectToServer: Invalid name" Loading file:///usr/share/sddm/themes/where_is_my_sddm_theme//Main.qml... file:///usr/share/sddm/themes/where_is_my_sddm_theme//Main.qml: Library import requires a version file:///usr/share/sddm/themes/where_is_my_sddm_theme//Main.qml: Library import requires a version 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() { ... } qrc:/theme/Main.qml:41:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... } Adding view for "eDP-1" QRect(0,0 1920x1080)

stepanzubkov commented 3 months ago

Try qt5 theme

ElrohirGT commented 3 months ago

Can confirm this happens with NixOS too! I'll try to pack the qt5 theme maybe that'll work...

ElrohirGT commented 3 months ago

The qt5 theme works! At least when I try to run it with:

sddm-greeter --test-mode --theme {path to my config dir}

The image appears blurred... This was not the case with the previous theme, do the configs change between the two? image

stepanzubkov commented 3 months ago

Oh, I accidentally left blurRadius=32 in the theme.conf. Setting blutRadius=0 will solve your problem

stepanzubkov commented 3 months ago

Fixed in main branch

GaetanLepage commented 3 months ago

Thank you very much !

GaetanLepage commented 3 months ago

Actually, I still encounter the error using 1.9.2...

stepanzubkov commented 3 months ago

Actually, I still encounter the error using 1.9.2...

Which error: error, described in topic or error with blurred background image? And which version of theme you are using now, qt5 or qt6?

GaetanLepage commented 3 months ago

Actually, I still encounter the error using 1.9.2...

Which error: error, described in topic or error with blurred background image? And which version of theme you are using now, qt5 or qt6?

The error mentioned in the issue description. I am using the qt6 version.

stepanzubkov commented 3 months ago

For me, on NixOS, qt6 theme works well. I think you are using sddm-greeter compiled with qt5. What is the output of command sddm-greeter --version for you?

GaetanLepage commented 2 months ago

Hmm, weird. I have not specified anything special regarding sddm. Here is the relevant config.

❯ sddm-greeter --version
[00:28:19.395] (II) GREETER: High-DPI autoscaling Enabled
sddm-greeter 
GaetanLepage commented 2 months ago

Hmm, weird. I have not specified anything special regarding sddm. Here is the relevant config.

Am I doing anything wrong ? Are you on nixos-unstable as well ?

stepanzubkov commented 2 months ago

Hmm, weird. I have not specified anything special regarding sddm. Here is the relevant config.

Am I doing anything wrong ? Are you on nixos-unstable as well ?

You should try qt5 theme

GaetanLepage commented 2 months ago

You should try qt5 theme

QT5 theme works indeed. I'll keep using that then. Thanks :)