https://bugs.kde.org/show_bug.cgi?id=511081

            Bug ID: 511081
           Summary: kde-gtk-config color scheme value is desync with
                    xdg-desktop-portal-kde
    Classification: Applications
           Product: systemsettings
      Version First 6.4.5
       Reported In:
          Platform: NixOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_style
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
When switching from dark to light theme, xdg-desktop-portal-kde emits
SettingChanged with color-scheme set to 2 (prefer light). kde-gtk-config sets
org.gnome.desktop.interface.color-scheme to 0 which makes
xdg-desktop-portal-gtk to emit SettingChanged with color-scheme set to 0 (no
preference). xdg-desktop-portal-gtk emits later thus applications use its
value.

STEPS TO REPRODUCE
1. Switch Plasma to a dark color scheme and back

OBSERVED RESULT
SettingChanged is first emitted with 2, then 0

EXPECTED RESULT
SettingChanged is emitted both times with 2

SOFTWARE/OS VERSIONS
Operating System: NixOS 25.11
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 64 ГиБ of RAM (62.7 ГиБ usable)
Graphics Processor: AMD Radeon RX 6400
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C94
System Version: 1.0

ADDITIONAL INFORMATION
I believe xdg-desktop-portal is at fault too due to not checking which impl is
responsible for the setting before forwarding the signal and I made a bug
report for it too (https://github.com/flatpak/xdg-desktop-portal/issues/1842)
but I don't know how fast they will fix it or will they fix it at all thus I
believe it would be a good idea to synchronize the values.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to