Skip to content
  • Prajna Sariputra's avatar
    [plugins/mousepad]: Add support for the persistence feature of the RemoteDesktop portal · 383ad27b
    Prajna Sariputra authored and Nicolas Fella's avatar Nicolas Fella committed
    This allows us to avoid asking the user for permission for remote control on Wayland every time kdeconnectd is restarted for whatever reason (for example logging out or rebooting), at least in theory. The idea is that the SelectDevices call now also accepts a restore token, and if the user grants permission to persist a restore token will be returned in the response of the Start call.
    
    Currently plasma/xdg-desktop-portal-kde!265 is required for this to work at all with Plasma 6, and even then persistence only works in the same session (for example if I restart kdeconnectd then I only get the notification instead of the permissions prompt), if I reboot the system then the token gets invalidated and the permissions dialog appears again, not sure if the issue is with what I'm doing here or if that's a bug in the portal.
    
    Things that need to be checked:
    - What happens if the portal i...
    383ad27b