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

            Bug ID: 480235
           Summary: Persistence in the remote desktop portal does not work
                    across reboots
    Classification: Plasma
           Product: xdg-desktop-portal-kde
           Version: git-master
          Platform: Other
                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
I tried to add support in KDE Connect's remote input plugin for the new
persistence feature in v2 of the remote desktop portal protocol in
https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/639. While it
works if I restart the KDE Connect daemon (I just get the notification instead
of the permission request dialog), the token appears to be invalidated after a
reboot, so the permissions prompt appears again.

If I try the same patched KDE Connect in a GNOME 45.2 Wayland session the
restore token does persist across reboots, which leads me to suspect that the
issue is in the KDE portal.


STEPS TO REPRODUCE
1. Build KDE Connect with the aforementioned MR
2. Try to use remote input from another connected device
3. Accept the remote control permission request with persistence enabled
4. Reboot
5. Try step 2 again

OBSERVED RESULT
The permission dialog appears again.

EXPECTED RESULT
The remote control request should be granted immediately, with just a
notification appearing.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Kernel Version: 6.6.10-arch1-1 (64-bit)
Graphics Platform: Wayland
XDG Desktop Portal: 1.18.2

ADDITIONAL INFORMATION
https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/265 is
also needed for the patched KDE Connect to work, since it only requests control
of input devices and doesn't need the screens. Alternatively another app that
also supports v2 of the remote desktop portal might exhibit the same issue, but
I don't know of any such app at the moment.

Also, as per the portal documentation
(https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.RemoteDesktop.html)
the restore token is supposed to be invalidated after each use and a new one
issued in the Start call's response, but both the GNOME and KDE portals appear
to just use the same token anyway.

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

Reply via email to