Skip to content
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

send more than one clipboard target to greedy clients #4228

Open
totaam opened this issue May 14, 2024 · 0 comments
Open

send more than one clipboard target to greedy clients #4228

totaam opened this issue May 14, 2024 · 0 comments
Labels
clipboard enhancement New feature or request

Comments

@totaam
Copy link
Collaborator

totaam commented May 14, 2024

This is needed to be able to provide both text/html and text/plain targets to the html5 client: Xpra-org/xpra-html5#283

At the moment, we just choose the first match from the preferred order list:

# find the preferred targets:
targets = self.choose_targets(otargets)
log(f"choose_targets({otargets})={targets}")
if not targets:
send_token_with_targets()
return
target = targets[0]

The most difficult part is to make the data fit in the clipboard-token packet, which has been overloaded too many times already.
The correct way to handle this is to use the new packet format: #1942 so that we can just send a dictionary of targets + values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clipboard enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant