From d64d1dbe260cf91d5d067e32e6b38fb91a1b4edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Wed, 25 Nov 2026 12:57:58 -0300 Subject: [PATCH 1/7] Keep the login wallpaper in sync without a copy loop The path unit watched the image it copies, so every copy started another until start-limit-hit failed the unit for the rest of the session. The copy now runs only when the image differs and only for the user of the seat's active session, and it accepts file:// paths and wallpaper packages. post_install enables the path unit with systemctl --global instead of a hand-made link, and no longer starts the service as the first user in /etc/passwd. --- pkgbuild/pkgbuild.install | 10 +++----- .../usr/lib/systemd/user/sddm-wallpaper.path | 3 ++- .../lib/systemd/user/sddm-wallpaper.service | 8 +++---- .../share/sddm/wallpaper/change-wallpaper.sh | 24 ++++++++++++++++++- 4 files changed, 32 insertions(+), 13 deletions(-) diff --git a/pkgbuild/pkgbuild.install b/pkgbuild/pkgbuild.install index ac384f8..5de22b1 100644 --- a/pkgbuild/pkgbuild.install +++ b/pkgbuild/pkgbuild.install @@ -5,14 +5,10 @@ ## arg 1: the new package version post_install() { - if [ ! -e "/etc/systemd/user/default.target.wants/sddm-wallpaper.path" ];then - ln -s /usr/lib/systemd/user/sddm-wallpaper.path /etc/systemd/user/default.target.wants/sddm-wallpaper.path - fi + systemctl --global enable sddm-wallpaper.path + # Each user's sddm-wallpaper.service copies their wallpaper over it. chmod 666 /usr/share/sddm/wallpaper/image.png - user=$(awk -F':' '{ if ($3 >= 1000 && $1 != "nobody") print $1 }' /etc/passwd | head -n1) - sudo -u $user XDG_RUNTIME_DIR=/run/user/$(id -u $user) systemctl --user daemon-reload - sudo -u $user XDG_RUNTIME_DIR=/run/user/$(id -u $user) systemctl -q --user start sddm-wallpaper.service - + systemctl enable --now sddm-fix.service } diff --git a/sddm-theme-biglinux/usr/lib/systemd/user/sddm-wallpaper.path b/sddm-theme-biglinux/usr/lib/systemd/user/sddm-wallpaper.path index 4474b36..36bd07d 100644 --- a/sddm-theme-biglinux/usr/lib/systemd/user/sddm-wallpaper.path +++ b/sddm-theme-biglinux/usr/lib/systemd/user/sddm-wallpaper.path @@ -1,6 +1,7 @@ [Unit] Description=SDDM change WallPaper -ConditionUser=!root +# System accounts, the greeter's among them, have no desktop. +ConditionUser=!@system [Path] PathModified=%h/.config/plasma-org.kde.plasma.desktop-appletsrc diff --git a/sddm-theme-biglinux/usr/lib/systemd/user/sddm-wallpaper.service b/sddm-theme-biglinux/usr/lib/systemd/user/sddm-wallpaper.service index 7bfada3..c068194 100644 --- a/sddm-theme-biglinux/usr/lib/systemd/user/sddm-wallpaper.service +++ b/sddm-theme-biglinux/usr/lib/systemd/user/sddm-wallpaper.service @@ -1,10 +1,10 @@ [Unit] Description=SDDM change WallPaper -ConditionUser=!root +ConditionUser=!@system +# Plasma writes its settings several times per change; a start limit would fail +# the path unit and end the sync for the session. +StartLimitIntervalSec=0 [Service] Type=oneshot ExecStart=/usr/share/sddm/wallpaper/change-wallpaper.sh - -[Install] -WantedBy=default.target diff --git a/sddm-theme-biglinux/usr/share/sddm/wallpaper/change-wallpaper.sh b/sddm-theme-biglinux/usr/share/sddm/wallpaper/change-wallpaper.sh index 757de9b..6333385 100755 --- a/sddm-theme-biglinux/usr/share/sddm/wallpaper/change-wallpaper.sh +++ b/sddm-theme-biglinux/usr/share/sddm/wallpaper/change-wallpaper.sh @@ -1,3 +1,25 @@ #!/usr/bin/env bash +# Copies the user's Plasma wallpaper to the image the greeter shows +# (auto_background in each theme's theme.conf). -cp "$(grep -m1 -Po "(?<=^Image=).*" "$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc" | tr -d '"' | tr -d ';')" /usr/share/sddm/wallpaper/image.png +target=/usr/share/sddm/wallpaper/image.png + +# Only the user of the seat's active session copies: each copy wakes the path +# unit of every other logged-in user, and two different wallpapers would copy +# over each other without end. +session=$(loginctl show-seat seat0 --property=ActiveSession --value) +[[ -n $session && $(loginctl show-session "$session" --property=User --value) == "$UID" ]] || exit 0 + +image=$(grep -m1 -Po '(?<=^Image=).*' "$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc") +image=${image//[\";]/} +image=${image#file://} +# A wallpaper package holds one image per resolution; take the largest file. +if [[ -d $image ]]; then + image=$(ls -S "$image"/contents/images/* 2>/dev/null | head -n1) +fi +# A plain color or a slideshow has no image. +[[ -f $image ]] || exit 0 + +# The path unit also watches the target, so an upgrade that restores the +# default image has it replaced again. +cmp -s "$image" "$target" || cp "$image" "$target" From 596b11c2531c0a688a89a5159870130264ad356f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Wed, 25 Nov 2026 12:57:59 -0300 Subject: [PATCH 2/7] Remove the KDE stock avatars quietly when already gone --- .../usr/share/libalpm/scripts/remove-avatar-biglinux | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sddm-theme-biglinux/usr/share/libalpm/scripts/remove-avatar-biglinux b/sddm-theme-biglinux/usr/share/libalpm/scripts/remove-avatar-biglinux index 0180607..6a16614 100755 --- a/sddm-theme-biglinux/usr/share/libalpm/scripts/remove-avatar-biglinux +++ b/sddm-theme-biglinux/usr/share/libalpm/scripts/remove-avatar-biglinux @@ -1,5 +1,5 @@ #!/usr/bin/env bash +# Drops the KDE mascot avatars and stock photos plasma-workspace ships, leaving +# the BigLinux avatars as the choice offered for new accounts. -rm /usr/share/plasma/avatars/*Konqi* -rm /usr/share/plasma/avatars/*Katie* -rm -r /usr/share/plasma/avatars/photos +rm -rf /usr/share/plasma/avatars/*Konqi* /usr/share/plasma/avatars/*Katie* /usr/share/plasma/avatars/photos From 3d5e9f9d582639c422da77f0706499cde8aa46c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Wed, 25 Nov 2026 12:57:59 -0300 Subject: [PATCH 3/7] Decode the login wallpaper at the screen's size In the biglinux, biglinux-image and biglinux-image-3d themes, with the 5120x2880 Next wallpaper, the greeter keeps about 60 MB less PSS and peaks 100 MB lower. The image is also cropped instead of stretched. --- .../usr/share/sddm/themes/biglinux-image-3d/Main.qml | 3 +++ .../usr/share/sddm/themes/biglinux-image/Main.qml | 3 +++ sddm-theme-biglinux/usr/share/sddm/themes/biglinux/Main.qml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/Main.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/Main.qml index 6cb785f..28bc96e 100755 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/Main.qml +++ b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/Main.qml @@ -54,6 +54,9 @@ Item { width: parent.width source: config.type == "color" || !config.background ? config.auto_background : config.background asynchronous: false + // Decoded at the screen's size and cropped like the Plasma desktop. + sourceSize: Qt.size(width * Screen.devicePixelRatio, height * Screen.devicePixelRatio) + fillMode: Image.PreserveAspectCrop cache: true clip: true visible: true diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/Main.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/Main.qml index 0d76ede..d83e070 100755 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/Main.qml +++ b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/Main.qml @@ -54,6 +54,9 @@ Item { width: parent.width source: config.type == "color" || !config.background ? config.auto_background : config.background asynchronous: false + // Decoded at the screen's size and cropped like the Plasma desktop. + sourceSize: Qt.size(width * Screen.devicePixelRatio, height * Screen.devicePixelRatio) + fillMode: Image.PreserveAspectCrop cache: true clip: true visible: true diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/Main.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/Main.qml index d4a006e..d431681 100755 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/Main.qml +++ b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/Main.qml @@ -56,6 +56,9 @@ Item { width: parent.width source: config.type == "color" || !config.background ? config.auto_background : config.background asynchronous: false + // Decoded at the screen's size and cropped like the Plasma desktop. + sourceSize: Qt.size(width * Screen.devicePixelRatio, height * Screen.devicePixelRatio) + fillMode: Image.PreserveAspectCrop cache: true clip: true visible: true From c48884eb117893467c72d1f8cb08dccb4e462e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Wed, 25 Nov 2026 12:58:07 -0300 Subject: [PATCH 4/7] Run sddm-fix only when SDDM starts sddm-fix.service wanted sddm.service, and post_install started it, so upgrading the package started SDDM on machines whose display manager is another one; SDDM took the seat's VT and froze the running session. sddm-fix now runs from an sddm.service drop-in, and the upgrade disables the old unit. --- pkgbuild/pkgbuild.install | 11 ++++++----- .../usr/lib/systemd/system/sddm-fix.service | 11 ----------- .../system/sddm.service.d/sddm-theme-biglinux.conf | 4 ++++ 3 files changed, 10 insertions(+), 16 deletions(-) delete mode 100644 sddm-theme-biglinux/usr/lib/systemd/system/sddm-fix.service create mode 100644 sddm-theme-biglinux/usr/lib/systemd/system/sddm.service.d/sddm-theme-biglinux.conf diff --git a/pkgbuild/pkgbuild.install b/pkgbuild/pkgbuild.install index 5de22b1..bbb4294 100644 --- a/pkgbuild/pkgbuild.install +++ b/pkgbuild/pkgbuild.install @@ -8,14 +8,15 @@ post_install() { systemctl --global enable sddm-wallpaper.path # Each user's sddm-wallpaper.service copies their wallpaper over it. chmod 666 /usr/share/sddm/wallpaper/image.png - - systemctl enable --now sddm-fix.service } ## arg 2: the old package version -#pre_upgrade() { - # do something here -#} +pre_upgrade() { + # sddm-fix.service wanted sddm.service; drop its enablement while the unit exists. + if [ -e /usr/lib/systemd/system/sddm-fix.service ]; then + systemctl disable --no-reload sddm-fix.service + fi +} ## arg 2: the old package version post_upgrade() { diff --git a/sddm-theme-biglinux/usr/lib/systemd/system/sddm-fix.service b/sddm-theme-biglinux/usr/lib/systemd/system/sddm-fix.service deleted file mode 100644 index c86b3b0..0000000 --- a/sddm-theme-biglinux/usr/lib/systemd/system/sddm-fix.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Ensures that SDDM wallpaper is correct -Before=sddm.service -Wants=sddm.service - -[Service] -Type=simple -ExecStart=/usr/bin/sddm-fix - -[Install] -WantedBy=graphical.target diff --git a/sddm-theme-biglinux/usr/lib/systemd/system/sddm.service.d/sddm-theme-biglinux.conf b/sddm-theme-biglinux/usr/lib/systemd/system/sddm.service.d/sddm-theme-biglinux.conf new file mode 100644 index 0000000..f35eb6f --- /dev/null +++ b/sddm-theme-biglinux/usr/lib/systemd/system/sddm.service.d/sddm-theme-biglinux.conf @@ -0,0 +1,4 @@ +# Part of sddm.service rather than a unit of its own, so that it runs only where +# SDDM is the display manager and never starts SDDM itself. +[Service] +ExecStartPre=-/usr/bin/sddm-fix From f6cdb165d87d4d9ae2c6a22aed80fc336395ddec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Wed, 25 Nov 2026 12:58:08 -0300 Subject: [PATCH 5/7] Leave default avatars to biglinux-base-icons The avatars must reach accounts on systems without SDDM too, so the package that ships them assigns them. --- sddm-theme-biglinux/usr/bin/sddm-fix | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sddm-theme-biglinux/usr/bin/sddm-fix b/sddm-theme-biglinux/usr/bin/sddm-fix index cf69d21..70423ea 100755 --- a/sddm-theme-biglinux/usr/bin/sddm-fix +++ b/sddm-theme-biglinux/usr/bin/sddm-fix @@ -8,16 +8,6 @@ if [ ! -e "/usr/share/sddm/wallpaper/image.png" ];then cp "$(grep -m1 -Po "(?<=^Image=).*" "/home/$user/.config/plasma-org.kde.plasma.desktop-appletsrc" | tr -d '"' | tr -d ';')" /usr/share/sddm/wallpaper/image.png fi -OLD_IFS=$IFS -IFS=$'\n' -for user in $(awk -F':' '{ if ($3 >= 1000 && $1 != "nobody") print $1 }' /etc/passwd); do - if [ ! -e "/var/lib/AccountsService/icons/$user" ];then - cp "$(shuf -n 1 -e $(ls /usr/share/plasma/avatars/*.png))" /var/lib/AccountsService/icons/$user - fi -done -IFS=$OLD_IFS - - ##### Numlock ####### # Verify if last login user select auto enable numlock in kwin if grep -qi "NumLock=0" "/home/$(grep User= /var/lib/sddm/state.conf | sed 's|User=||g;s| ||g')/.config/kcminputrc"; then From 3715d369a8a724c2ff1a1903e6c1d4e5064beb0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Wed, 25 Nov 2026 12:58:08 -0300 Subject: [PATCH 6/7] Run the login screen on Wayland only Plasma, GNOME and BigDesktop have no X11 session left. The package sets SDDM to Wayland itself instead of relying on the wayland boot option, which the installer no longer copies to the installed system, and uses plasma-keyboard for the virtual keyboard. The upgrade removes the 10-wayland.conf that big-first-boot and the live session generated, since it overrides this configuration and starts maliit-keyboard, which is not installed; any other content is kept. The X11 Xsetup, NumLock and virtual keyboard parts are gone. --- pkgbuild/pkgbuild.install | 18 +++++ sddm-theme-biglinux/usr/bin/sddm-fix | 8 --- .../sddm/sddm.conf.d/sddm-theme-biglinux.conf | 7 ++ .../share/libalpm/scripts/sddm-theme-biglinux | 6 -- .../usr/share/sddm/scripts/Xsetup-big | 19 ----- .../components/VirtualKeyboard.qml | 69 ------------------- .../components/VirtualKeyboardLoader.qml | 4 +- .../components/VirtualKeyboard.qml | 69 ------------------- .../components/VirtualKeyboardLoader.qml | 4 +- .../components/VirtualKeyboard.qml | 69 ------------------- .../components/VirtualKeyboardLoader.qml | 4 +- .../components/VirtualKeyboard.qml | 69 ------------------- .../components/VirtualKeyboardLoader.qml | 4 +- .../biglinux/components/VirtualKeyboard.qml | 69 ------------------- .../components/VirtualKeyboardLoader.qml | 4 +- 15 files changed, 30 insertions(+), 393 deletions(-) create mode 100644 sddm-theme-biglinux/usr/lib/sddm/sddm.conf.d/sddm-theme-biglinux.conf delete mode 100755 sddm-theme-biglinux/usr/share/sddm/scripts/Xsetup-big delete mode 100755 sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/components/VirtualKeyboard.qml delete mode 100755 sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/components/VirtualKeyboard.qml delete mode 100755 sddm-theme-biglinux/usr/share/sddm/themes/biglinux-parallax/components/VirtualKeyboard.qml delete mode 100755 sddm-theme-biglinux/usr/share/sddm/themes/biglinux-pong/components/VirtualKeyboard.qml delete mode 100755 sddm-theme-biglinux/usr/share/sddm/themes/biglinux/components/VirtualKeyboard.qml diff --git a/pkgbuild/pkgbuild.install b/pkgbuild/pkgbuild.install index bbb4294..a415779 100644 --- a/pkgbuild/pkgbuild.install +++ b/pkgbuild/pkgbuild.install @@ -8,6 +8,22 @@ post_install() { systemctl --global enable sddm-wallpaper.path # Each user's sddm-wallpaper.service copies their wallpaper over it. chmod 666 /usr/share/sddm/wallpaper/image.png + + # Generated by big-first-boot and the live session, with x11 after sddm-verify. + # It would override sddm-theme-biglinux.conf and start maliit-keyboard, which + # is not installed. Other content is the administrator's. + wayland_config=/etc/sddm.conf.d/10-wayland.conf + generated='[General] +DisplayServer=wayland +GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell + +[Wayland] +CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1 --inputmethod maliit-keyboard' + if [ -f "$wayland_config" ] && + [ "$(grep -v -e '^# Generated by big-first-boot;' -e '^# Generated by biglinux-livecd;' "$wayland_config" | + sed 's/^DisplayServer=x11$/DisplayServer=wayland/')" = "$generated" ]; then + rm -f "$wayland_config" + fi } ## arg 2: the old package version @@ -16,6 +32,8 @@ pre_upgrade() { if [ -e /usr/lib/systemd/system/sddm-fix.service ]; then systemctl disable --no-reload sddm-fix.service fi + # The X11 greeter's NumLock setting, written by sddm-fix. + rm -f /etc/sddm.conf.d/enable_numlock.conf } ## arg 2: the old package version diff --git a/sddm-theme-biglinux/usr/bin/sddm-fix b/sddm-theme-biglinux/usr/bin/sddm-fix index 70423ea..27dcd81 100755 --- a/sddm-theme-biglinux/usr/bin/sddm-fix +++ b/sddm-theme-biglinux/usr/bin/sddm-fix @@ -33,11 +33,3 @@ else fi fi - -# Numlock X11 -if [[ "$NumLockUser" = "true" ]]; then - echo '[General] -Numlock=on' > /etc/sddm.conf.d/enable_numlock.conf -else - rm -f /etc/sddm.conf.d/enable_numlock.conf -fi diff --git a/sddm-theme-biglinux/usr/lib/sddm/sddm.conf.d/sddm-theme-biglinux.conf b/sddm-theme-biglinux/usr/lib/sddm/sddm.conf.d/sddm-theme-biglinux.conf new file mode 100644 index 0000000..45e0454 --- /dev/null +++ b/sddm-theme-biglinux/usr/lib/sddm/sddm.conf.d/sddm-theme-biglinux.conf @@ -0,0 +1,7 @@ +# A file in /etc/sddm.conf.d overrides these values. +[General] +DisplayServer=wayland +GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell + +[Wayland] +CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1 --inputmethod plasma-keyboard diff --git a/sddm-theme-biglinux/usr/share/libalpm/scripts/sddm-theme-biglinux b/sddm-theme-biglinux/usr/share/libalpm/scripts/sddm-theme-biglinux index 963e92a..14a27af 100755 --- a/sddm-theme-biglinux/usr/share/libalpm/scripts/sddm-theme-biglinux +++ b/sddm-theme-biglinux/usr/share/libalpm/scripts/sddm-theme-biglinux @@ -6,9 +6,3 @@ cp -f /usr/share/biglinux/themes/biglinux-dark/.config/plasmarc /var/lib/sddm/.c cp -f /etc/skel/.config/kcminputrc /var/lib/sddm/.config/kcminputrc chown -R sddm:sddm /var/lib/sddm/ -cp -f /usr/share/sddm/scripts/Xsetup-big /usr/share/sddm/scripts/Xsetup - -# Revert fix from update 0.20.0-2 -if grep -q 'InputMethod=qtvirtualkeyboard,compose *$' /etc/sddm.conf; then - sed -i 's|InputMethod=qtvirtualkeyboard,compose|InputMethod=qtvirtualkeyboard|g' /etc/sddm.conf -fi diff --git a/sddm-theme-biglinux/usr/share/sddm/scripts/Xsetup-big b/sddm-theme-biglinux/usr/share/sddm/scripts/Xsetup-big deleted file mode 100755 index 5e72537..0000000 --- a/sddm-theme-biglinux/usr/share/sddm/scripts/Xsetup-big +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -# Xsetup - run as root before the login dialog appears - - -#/usr/share/sddm/scripts/numlock - -# if [ "$(grep LANG= /etc/locale.conf | grep pt)" != "" ]; then -# sed -i 's|Name=.*|Name=Central de Controle|g' /usr/share/xsessions/bigcontrolcenter.desktop -# sed -i 's|lookandfeel", ".*%1"|lookandfeel", "Selecione o desktop: %1"|' /usr/share/sddm/themes/biglinux/SessionButton.qml -# else -# sed -i 's|Name=.*|Name=Control Center|g' /usr/share/xsessions/bigcontrolcenter.desktop -# sed -i 's|lookandfeel", ".*%1"|lookandfeel", "Change desktop: %1"|' /usr/share/sddm/themes/biglinux/SessionButton.qml -# fi - - -# nvidia prime support -if [ -f "/sbin/prime-offload" ]; then - /sbin/prime-offload -fi diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/components/VirtualKeyboard.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/components/VirtualKeyboard.qml deleted file mode 100755 index 73f46ab..0000000 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/components/VirtualKeyboard.qml +++ /dev/null @@ -1,69 +0,0 @@ -/* - SPDX-FileCopyrightText: 2017 Martin Gräßlin - - SPDX-License-Identifier: GPL-2.0-or-later -*/ - -import QtQuick -import QtQuick.VirtualKeyboard as QtVK - -import org.kde.kirigami as Kirigami - -QtVK.InputPanel { - id: inputPanel - property bool activated: false - active: activated && InputMethod.visible - width: parent.width - - states: [ - State { - name: "visible" - when: inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.height - inputPanel.opacity: 1 - inputPanel.visible: true - } - }, - State { - name: "hidden" - when: !inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.opacity: 0 - inputPanel.visible:false - } - } - ] - - transitions: [ - Transition { - to: "visible" - ParallelAnimation { - YAnimator { - // NOTE this is necessary as otherwise the keyboard always starts the transition with Y as 0, due to the internal reparenting happening when becomes active - from: inputPanel.parent.height - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - } - }, - Transition { - to: "hidden" - ParallelAnimation { - YAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - } - } - ] -} diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/components/VirtualKeyboardLoader.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/components/VirtualKeyboardLoader.qml index 82a58a1..32c0ef3 100644 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/components/VirtualKeyboardLoader.qml +++ b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image-3d/components/VirtualKeyboardLoader.qml @@ -24,9 +24,7 @@ Loader { state = state === "hidden" ? "visible" : "hidden"; } - source: Qt.platform.pluginName.includes("wayland") - ? Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") - : Qt.resolvedUrl("./VirtualKeyboard.qml") + source: Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") onKeyboardActiveChanged: { if (keyboardActive) { diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/components/VirtualKeyboard.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/components/VirtualKeyboard.qml deleted file mode 100755 index 73f46ab..0000000 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/components/VirtualKeyboard.qml +++ /dev/null @@ -1,69 +0,0 @@ -/* - SPDX-FileCopyrightText: 2017 Martin Gräßlin - - SPDX-License-Identifier: GPL-2.0-or-later -*/ - -import QtQuick -import QtQuick.VirtualKeyboard as QtVK - -import org.kde.kirigami as Kirigami - -QtVK.InputPanel { - id: inputPanel - property bool activated: false - active: activated && InputMethod.visible - width: parent.width - - states: [ - State { - name: "visible" - when: inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.height - inputPanel.opacity: 1 - inputPanel.visible: true - } - }, - State { - name: "hidden" - when: !inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.opacity: 0 - inputPanel.visible:false - } - } - ] - - transitions: [ - Transition { - to: "visible" - ParallelAnimation { - YAnimator { - // NOTE this is necessary as otherwise the keyboard always starts the transition with Y as 0, due to the internal reparenting happening when becomes active - from: inputPanel.parent.height - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - } - }, - Transition { - to: "hidden" - ParallelAnimation { - YAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - } - } - ] -} diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/components/VirtualKeyboardLoader.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/components/VirtualKeyboardLoader.qml index 82a58a1..32c0ef3 100644 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/components/VirtualKeyboardLoader.qml +++ b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-image/components/VirtualKeyboardLoader.qml @@ -24,9 +24,7 @@ Loader { state = state === "hidden" ? "visible" : "hidden"; } - source: Qt.platform.pluginName.includes("wayland") - ? Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") - : Qt.resolvedUrl("./VirtualKeyboard.qml") + source: Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") onKeyboardActiveChanged: { if (keyboardActive) { diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-parallax/components/VirtualKeyboard.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-parallax/components/VirtualKeyboard.qml deleted file mode 100755 index 73f46ab..0000000 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-parallax/components/VirtualKeyboard.qml +++ /dev/null @@ -1,69 +0,0 @@ -/* - SPDX-FileCopyrightText: 2017 Martin Gräßlin - - SPDX-License-Identifier: GPL-2.0-or-later -*/ - -import QtQuick -import QtQuick.VirtualKeyboard as QtVK - -import org.kde.kirigami as Kirigami - -QtVK.InputPanel { - id: inputPanel - property bool activated: false - active: activated && InputMethod.visible - width: parent.width - - states: [ - State { - name: "visible" - when: inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.height - inputPanel.opacity: 1 - inputPanel.visible: true - } - }, - State { - name: "hidden" - when: !inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.opacity: 0 - inputPanel.visible:false - } - } - ] - - transitions: [ - Transition { - to: "visible" - ParallelAnimation { - YAnimator { - // NOTE this is necessary as otherwise the keyboard always starts the transition with Y as 0, due to the internal reparenting happening when becomes active - from: inputPanel.parent.height - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - } - }, - Transition { - to: "hidden" - ParallelAnimation { - YAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - } - } - ] -} diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-parallax/components/VirtualKeyboardLoader.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-parallax/components/VirtualKeyboardLoader.qml index 82a58a1..32c0ef3 100644 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-parallax/components/VirtualKeyboardLoader.qml +++ b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-parallax/components/VirtualKeyboardLoader.qml @@ -24,9 +24,7 @@ Loader { state = state === "hidden" ? "visible" : "hidden"; } - source: Qt.platform.pluginName.includes("wayland") - ? Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") - : Qt.resolvedUrl("./VirtualKeyboard.qml") + source: Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") onKeyboardActiveChanged: { if (keyboardActive) { diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-pong/components/VirtualKeyboard.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-pong/components/VirtualKeyboard.qml deleted file mode 100755 index 73f46ab..0000000 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-pong/components/VirtualKeyboard.qml +++ /dev/null @@ -1,69 +0,0 @@ -/* - SPDX-FileCopyrightText: 2017 Martin Gräßlin - - SPDX-License-Identifier: GPL-2.0-or-later -*/ - -import QtQuick -import QtQuick.VirtualKeyboard as QtVK - -import org.kde.kirigami as Kirigami - -QtVK.InputPanel { - id: inputPanel - property bool activated: false - active: activated && InputMethod.visible - width: parent.width - - states: [ - State { - name: "visible" - when: inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.height - inputPanel.opacity: 1 - inputPanel.visible: true - } - }, - State { - name: "hidden" - when: !inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.opacity: 0 - inputPanel.visible:false - } - } - ] - - transitions: [ - Transition { - to: "visible" - ParallelAnimation { - YAnimator { - // NOTE this is necessary as otherwise the keyboard always starts the transition with Y as 0, due to the internal reparenting happening when becomes active - from: inputPanel.parent.height - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - } - }, - Transition { - to: "hidden" - ParallelAnimation { - YAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - } - } - ] -} diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-pong/components/VirtualKeyboardLoader.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-pong/components/VirtualKeyboardLoader.qml index 82a58a1..32c0ef3 100644 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-pong/components/VirtualKeyboardLoader.qml +++ b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux-pong/components/VirtualKeyboardLoader.qml @@ -24,9 +24,7 @@ Loader { state = state === "hidden" ? "visible" : "hidden"; } - source: Qt.platform.pluginName.includes("wayland") - ? Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") - : Qt.resolvedUrl("./VirtualKeyboard.qml") + source: Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") onKeyboardActiveChanged: { if (keyboardActive) { diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/components/VirtualKeyboard.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/components/VirtualKeyboard.qml deleted file mode 100755 index 73f46ab..0000000 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/components/VirtualKeyboard.qml +++ /dev/null @@ -1,69 +0,0 @@ -/* - SPDX-FileCopyrightText: 2017 Martin Gräßlin - - SPDX-License-Identifier: GPL-2.0-or-later -*/ - -import QtQuick -import QtQuick.VirtualKeyboard as QtVK - -import org.kde.kirigami as Kirigami - -QtVK.InputPanel { - id: inputPanel - property bool activated: false - active: activated && InputMethod.visible - width: parent.width - - states: [ - State { - name: "visible" - when: inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.height - inputPanel.opacity: 1 - inputPanel.visible: true - } - }, - State { - name: "hidden" - when: !inputPanel.active - PropertyChanges { - inputPanel.y: inputPanel.parent.height - inputPanel.opacity: 0 - inputPanel.visible:false - } - } - ] - - transitions: [ - Transition { - to: "visible" - ParallelAnimation { - YAnimator { - // NOTE this is necessary as otherwise the keyboard always starts the transition with Y as 0, due to the internal reparenting happening when becomes active - from: inputPanel.parent.height - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.OutQuad - } - } - }, - Transition { - to: "hidden" - ParallelAnimation { - YAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - OpacityAnimator { - duration: Kirigami.Units.longDuration - easing.type: Easing.InQuad - } - } - } - ] -} diff --git a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/components/VirtualKeyboardLoader.qml b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/components/VirtualKeyboardLoader.qml index 82a58a1..32c0ef3 100644 --- a/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/components/VirtualKeyboardLoader.qml +++ b/sddm-theme-biglinux/usr/share/sddm/themes/biglinux/components/VirtualKeyboardLoader.qml @@ -24,9 +24,7 @@ Loader { state = state === "hidden" ? "visible" : "hidden"; } - source: Qt.platform.pluginName.includes("wayland") - ? Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") - : Qt.resolvedUrl("./VirtualKeyboard.qml") + source: Qt.resolvedUrl("./VirtualKeyboard_wayland.qml") onKeyboardActiveChanged: { if (keyboardActive) { From e85e9ed3f398a8e5a02e8345311238d565d74e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Wed, 25 Nov 2026 13:39:45 -0300 Subject: [PATCH 7/7] Decode percent-encoded characters in the wallpaper URL Plasma stores the wallpaper as a file URL, where Qt keeps %, # and ? encoded, so a file with one of them in its name was not found. --- .../usr/share/sddm/wallpaper/change-wallpaper.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sddm-theme-biglinux/usr/share/sddm/wallpaper/change-wallpaper.sh b/sddm-theme-biglinux/usr/share/sddm/wallpaper/change-wallpaper.sh index 6333385..ab8537e 100755 --- a/sddm-theme-biglinux/usr/share/sddm/wallpaper/change-wallpaper.sh +++ b/sddm-theme-biglinux/usr/share/sddm/wallpaper/change-wallpaper.sh @@ -12,7 +12,12 @@ session=$(loginctl show-seat seat0 --property=ActiveSession --value) image=$(grep -m1 -Po '(?<=^Image=).*' "$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc") image=${image//[\";]/} -image=${image#file://} +if [[ $image == file://* ]]; then + # Qt keeps %, # and ? percent-encoded in a file URL. + image=${image#file://} + image=${image//\\/\\\\} + printf -v image '%b' "${image//%/\\x}" +fi # A wallpaper package holds one image per resolution; take the largest file. if [[ -d $image ]]; then image=$(ls -S "$image"/contents/images/* 2>/dev/null | head -n1)