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

            Bug ID: 476592
           Summary: Incorrect output for the color-scheme portal
    Classification: Plasma
           Product: xdg-desktop-portal-kde
           Version: git-master
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: putr...@gmail.com
                CC: aleix...@kde.org, jgrul...@redhat.com, n...@kde.org
  Target Milestone: ---

SUMMARY
In Plasma 6, the color scheme portal outputs its result in a slightly different
format, which at minimum stops libadwaita apps (for example Epiphany/GNOME Web,
Flatseal and so on) from switching to dark mode automatically following the
rest of the system. The same apps work fine in a Plasma 5 session.

The libadwaita apps show this error message in the terminal: "Invalid type for
org.freedesktop.appearance.color-scheme: expected u, got v".


STEPS TO REPRODUCE
1. Run a Plasma 6 session
2. Use a dark color scheme
3. Open GNOME Web or Flatseal (or any libadwaita app that follows the color
scheme preference) 

OBSERVED RESULT
The opened app stays in light mode.

EXPECTED RESULT
The opened app should be in dark mode.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Kernel Version: 6.5.9-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 6800H with Radeon Graphics
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION
xdg-desktop-portal-kde is at commit 3dc22a2c75d5533ab518b03b9201052c59e842ab
when I compiled it.

Also, here is the difference between the portal output for Plasma 5 and 6
respectively:

Plasma 5 (working):
➜  ~ dbus-send  --print-reply=literal --dest=org.freedesktop.portal.Desktop
/org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read
string:org.freedesktop.appearance string:color-scheme                           
   variant       variant          uint32 1
➜  ~ dbus-send  --print-reply=literal
--dest=org.freedesktop.impl.portal.desktop.kde /org/freedesktop/portal/desktop
org.freedesktop.impl.portal.Settings.Read string:org.freedesktop.appearance
string:color-scheme
   variant       uint32 1

Plasma 6 (not working):
➜  ~ dbus-send  --print-reply=literal --dest=org.freedesktop.portal.Desktop
/org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read
string:org.freedesktop.appearance string:color-scheme                           
   variant       variant          variant             uint32 1
➜  ~ dbus-send  --print-reply=literal
--dest=org.freedesktop.impl.portal.desktop.kde /org/freedesktop/portal/desktop
org.freedesktop.impl.portal.Settings.Read string:org.freedesktop.appearance
string:color-scheme                                                    
   variant       variant          uint32 1

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

Reply via email to