| Summary: | Incorrect output for the color-scheme portal | ||
|---|---|---|---|
| Product: | [Plasma] xdg-desktop-portal-kde | Reporter: | Prajna Sariputra <putr4.s> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aleixpol, jgrulich, nate |
| Priority: | NOR | Keywords: | qt6 |
| Version First Reported In: | git-master | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/bb974d5c052557a5aca4c3c16606bbb4c24b5e2d | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Prajna Sariputra
2023-11-05 16:05:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/244 Git commit bb974d5c052557a5aca4c3c16606bbb4c24b5e2d by Nicolas Fella, on behalf of Bharadwaj Raju. Committed on 08/11/2023 at 11:13. Pushed by nicolasfella into branch 'master'. Use QDBusVariant::variant() instead of QVariant::fromValue() The former produces a QVariant of the type that QDBusVariant held, while the latter produces a QVariant of type QDBusVariant itself. This affects our return type according to DBus. Simple test: ```cpp auto x = QVariant::fromValue(readFdoColorScheme()); auto y = readFdoColorScheme().variant(); qDebug() << x.typeName() << y.typeName(); ``` M +2 -2 src/settings.cpp https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/bb974d5c052557a5aca4c3c16606bbb4c24b5e2d A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/249 Git commit 9122e408acdd7382c8183a3977b7e28b450b1b2c by Fushan Wen. Committed on 25/11/2023 at 07:39. Pushed by fusionfuture into branch 'master'. Make sure replies from org.freedesktop.appearance have correct signatures M +6 -0 autotests/CMakeLists.txt A +82 -0 autotests/colorschemetest.py https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/9122e408acdd7382c8183a3977b7e28b450b1b2c |