mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 22:01:59 -06:00
[PR #383] [MERGED] Handle the RemoteDesktop portal restore token correctly #396
Labels
No labels
Xorg
documentation
enhancement
macos
pull-request
question
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/lan-mouse#396
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/feschber/lan-mouse/pull/383
Author: @whot
Created: 2/10/2026
Status: ✅ Merged
Merged: 2/11/2026
Merged by: @feschber
Base:
main← Head:wip/remote-desktop-restore-token📝 Commits (1)
c3616e1Handle the RemoteDesktop portal restore token correctly📊 Changes
1 file changed (+46 additions, -3 deletions)
View changed files
📝
input-emulation/src/libei.rs(+46 -3)📄 Description
For a session to actually persist, we need to request a persistence mode which we already do. The portal then returns a restore-token (in the form of an uuid) to us as part of the response to Start.
This token must then be passed into the next session during SelectDevices to restore the previous session.
The token is officially a single-use token, so we need to overwrite it every time. In practise the current XDP implementation may re-use the token but we cannot rely on that.
Reading and writing the token is not async since we expect them to be uuid-length.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.