deskflow icon indicating copy to clipboard operation
deskflow copied to clipboard

Log spam about language on Wayland

Open nbolton opened this issue 1 year ago • 1 comments

Project

Deskflow

Deskflow version number

1.17.0

Build type

Deskflow package (downloaded from Deskflow)

Operating systems (OS)

  • [ ] Windows
  • [ ] macOS
  • [ ] Linux (X11)
  • [X] Linux (Wayland)
  • [ ] BSD-derived
  • [ ] Other (please specify)

Wayland on Linux

  • [X] I have reviewed the Wayland known issues and my issue is new
  • [ ] I am not using Wayland on Linux

Signing on macOS

  • [ ] I have authorized the app to run on my Mac
  • [X] I am not using macOS

Continuous build

  • [X] I have tried the latest continuous build and the issue persists
  • [ ] I am unable to try the latest continuous build

OS versions/distros

Any Linux with Wayland

Deskflow configuration

No response

What steps will reproduce the problem?

?

Log output

[2024-10-25T07:55:51] WARNING: failed to convert layout lang code: ""
[2024-10-25T07:55:51] WARNING: language "" is unknown
[2024-10-25T07:55:51] WARNING: failed to convert layout lang code: ""
[2024-10-25T07:55:51] WARNING: language "" is unknown
[2024-10-25T07:55:51] WARNING: failed to convert layout lang code: ""
[2024-10-25T07:55:51] WARNING: language "" is unknown
[2024-10-25T07:55:51] WARNING: failed to convert layout lang code: ""
[2024-10-25T07:55:51] WARNING: language "" is unknown
[2024-10-25T07:55:51] WARNING: failed to convert layout lang code: ""
[2024-10-25T07:55:51] WARNING: language "" is unknown
[2024-10-25T07:55:51] WARNING: failed to convert layout lang code: ""
[2024-10-25T07:55:51] WARNING: language "" is unknown

Additional information

Only happens on Wayland, not sure what causes it.

Solution is probably to improve the log message, set these to debug log level, or fix the underlying issue.

nbolton avatar Oct 25 '24 11:10 nbolton

The underlying issue is lack of clipboard sharing between Linux with wayland and any other receiver machine. I've tested on Gentoo to MacOS and it gives the same error.

While starting DeskFlow on both machines, the languages are recognized correctly:

Server:

[2024-11-06T10:12:29] INFO: accepted secure socket
[2024-11-06T10:12:29] INFO: network encryption protocol: TLSv1.3
[2024-11-06T10:12:29] NOTE: accepted client connection
[2024-11-06T10:12:29] INFO: local languages: en
[2024-11-06T10:12:29] NOTE: client "mac" has connected

Client:

[2024-11-06T10:12:29] DEBUG: got hello from Synergy, protocol v1.8
[2024-11-06T10:12:29] DEBUG: saying hello back with version Synergy 1.8
[2024-11-06T10:12:29] INFO: local languages: en, pl
[2024-11-06T10:12:29] INFO: remote languages: en
[2024-11-06T10:12:29] DEBUG: hiding cursor
[2024-11-06T10:12:29] WARNING: cursor may not be visible
[2024-11-06T10:12:29] NOTE: connected to server
[2024-11-06T10:12:39] INFO: entering screen
[2024-11-06T10:12:39] DEBUG: showing cursor
[2024-11-06T10:12:39] DEBUG: start receiving clipboard data
[2024-11-06T10:12:39] DEBUG: receiving clipboard 0 size=4
[2024-11-06T10:12:39] DEBUG: received clipboard 0 size=4
[2024-11-06T10:12:39] DEBUG: setting clipboard
[2024-11-06T10:12:39] DEBUG: opening clipboard
[2024-11-06T10:12:39] DEBUG: emptying clipboard
[2024-11-06T10:12:39] DEBUG: closing clipboard

But the clipboard content isn't copied between the machines.

wiktorglowacki avatar Nov 06 '24 16:11 wiktorglowacki

Fixed by #8405

nbolton avatar Mar 27 '25 13:03 nbolton