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

--- Comment #16 from Prajna Sariputra <putr...@gmail.com> ---
(In reply to orangestar from comment #15)
> (In reply to Prajna Sariputra from comment #12)
> > If it's the latter then chances are that's because Steam
> > didn't ask for persistence using version 2 of the portal interface, in which
> > case that would be a bug in Steam instead of Plasma.
> 
> What needs to change with regards to updating an application from version 1
> of the portal interface to version 2? Is it as simple as passing a flag to
> the XDG Desktop Portal or do parts of the application need to be refactored?
> 
> I'm noticing both Krfb and Steam exhibit this behavior where remote input is
> not restored on subsequent boots, while KDE Connect reliably retains
> permissions. Presumably, if we could write a quick patch for Kfrb to fix
> this behavior it could similarly be passed along to VALVe as a way to solve
> their application's problem as well.

Krfb should also work if you have version 24.05.1 or newer
(https://invent.kde.org/network/krfb/-/commit/01739fbf313d54abb1afb12367e7772b39a4dbfc),
and the patch for it is pretty much the same as what KDE Connect got for
24.02.0 so if KDE Connect works already then Krfb should be fine once you
update, although of course it'll still ask the first time after you update.
Also keep in mind that for persistence to work correctly you'll want to make
sure it's started the same way every time, in the past I've noticed that
opening it using Kickoff/KRunner, via autostart or manually running it in a
terminal window can result in the portal thinking it's a different app and
rejecting persistence.

The main changes required are that the app needs to pass two new options to the
SelectDevices call, which are `persist_mode` and `restore_token`, and if the
user does allow persistence then the token will be sent by the portal as a
response to the Start call, which the app will then need to remember and use
next time it calls SelectDevices. The details are in the portal documentation:
https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.RemoteDesktop.html

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

Reply via email to