https://bugs.kde.org/show_bug.cgi?id=470546
Bug ID: 470546 Summary: xdg-desktop-portal-kde starts too early, causing dbus reads to return incorrect values Classification: Plasma Product: xdg-desktop-portal-kde Version: 5.27.5 Platform: Archlinux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: plasma-b...@kde.org Reporter: k...@scheimong.net CC: aleix...@kde.org, jgrul...@redhat.com, n...@kde.org Target Milestone: --- # SUMMARY `qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read org.freedesktop.appearance color-scheme` is not correctly reporting the user's preferred theme (dark/light) after startup. Only after manually restarting `xdg-desktop-portal-kde` (`systemctl --user restart plasma-xdg-desktop-portal-kde.service`) does it work correctly. See here (https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/52#note_691671) for how I ran into this problem + initial triage. # STEPS TO REPRODUCE 1. Make sure `xdg-desktop-portal` and `xdg-desktop-portal-kde` are installed 2. Set your KDE theme to `Breeze Dark` 3. Restart your OS 4. Run `qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.Settings.Read "org.freedesktop.appearance" "color-scheme"` 5. Run `systemctl --user restart plasma-xdg-desktop-portal-kde.service` 6. Repeat step 4 # OBSERVED RESULT The dbus query (step 4) prints 2. Then after restart, the same query (step 6) prints 1. # EXPECTED RESULT They should both print 1. # SOFTWARE/OS VERSIONS - OS: EndeavourOS with all updates (as of 2023-06-02) - Kernel: `6.3.5-arch1-1` - Display server: X11 - Plasma: `5.27.5` - Framework: `5.106.0` - Qt: `5.15.9` - xdg-desktop-portal: `1.16.0` - xdg-desktop-portal-kde: `5.27.5` # ADDITIONAL INFORMATION I tested this on several different systems at my disposal. The results are somewhat curious. - Both of my EndeavourOS KDE laptops have this issue - Neither of my two tested VMs have this issue, including: - EndeavourOS KDE - Fedora 38 KDE - I also have Debian 11 but it only has KDE `5.20.5`, so I was not able to test it Related bug: https://bugs.kde.org/show_bug.cgi?id=458865 -- You are receiving this mail because: You are watching all bug changes.