New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix xdg portal verison check for persist_mode #6742
Conversation
@linuxrider have you tested this fixes your |
I have tested it for Fedora 39 Gnome 45 on wayland. With this the persistent checkbox is present in the source selection portal dialog. Furthermore after accepting with persistence option, closing rustdesk and reopening no further dialog is shown upon reconnecting and remote control works. This is the only procedure that works for me. I have tried several other procedures. E.g. adding the Documentation of the portals is not that clear for me. I think this is how it is supposed to work: The |
Thanks @linuxrider |
It works also with the nightly flatpak. |
1.2.31.2.3.mp4master commit and this branchpersist_mode.mp4 |
So the version checking needs to be more fine grained and in more places to cover Fedora 39 and Ubuntu 22.04. |
I don't know how portal handle it under version 4. I'm also testing. Another thing is the sharing icon persists after the connection end. In 1.2.3, the sharing icon disappears after the connection. |
Does this PR work fine in Fedora 39? I've tested Fedora 38, the same behavior to Ubuntu 22.04. |
@fufesou I have adapted the version checks and it still works for Fedora 39. |
The icon staying in the system tray after connection ends is also present in Fedora 39. |
So your test may be invalid. You need to run Or you can stop rustdesk service, do the following steps:
|
I did the test without installation of the compiled executable directly and with the flatpak from github. Closing the flatpak removes rustdesk from memory. I also did a reboot and the session still persisted. I could not get the rpm nor the deb to work properly in the vm. |
@linuxrider I've also tested with Fedora 39. This PR works fine. It was my fault. The versions of Your PR is good. 👍
|
@sahilyeole FYI. There will be compatibility issues here. And there's one left strange thing. Even after the connection ends, the shared state persists. |
Sure, I will work on it soon. |
@linuxrider @fufesou we can add a check there like |
@sahilyeole For |
@sahilyeole I'm not sure if the restore token can be used for both Maybe we can use "RemoteDesktop" and "uinput" together. For Otherwise, use "RemoteDesktop" as the input method. It's a little complicated. What do you think? |
Currently, we are only using rdp input when uinput is not available, like on flatpak. But the need for such implementation comes down to how much of a big problem the unavailability of |
Agree. I've also confirmed with @rustdesk |
After this PR wayland arch linux (with version 2) as remote is not working. It asks for input permission but the connection is not made. |
I will revert this PR first. |
Reverted |
fixes #6741 on Fedora 39.
ScreenCast
andRemoteDesktop
which addedpersist_mode
andrestore_token
on versions4
and2
, respectively.persist_mode
andrestore_token
happened in a too late step of setting up the session