Skip to content

Windows app hang when trying to paste from clipboard when xrdp connected Ubuntu lock its screen #3580

@Mingun

Description

@Mingun

xrdp version

0.9.24

Detailed xrdp version, build options

$ xrdp --version
xrdp 0.9.24
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2020 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --enable-ipv6
      --enable-jpeg
      --enable-fuse
      --enable-rfxcodec
      --enable-opus
      --enable-painter
      --enable-vsock
      --build=x86_64-linux-gnu
      --prefix=/usr
      --includedir=${prefix}/include
      --mandir=${prefix}/share/man
      --infodir=${prefix}/share/info
      --sysconfdir=/etc
      --localstatedir=/var
      --disable-silent-rules
      --libdir=${prefix}/lib/x86_64-linux-gnu
      --libexecdir=${prefix}/lib/x86_64-linux-gnu
      --disable-maintainer-mode
      --disable-dependency-tracking
      --with-socketdir=/run/xrdp/sockdir
      build_alias=x86_64-linux-gnu
      CFLAGS=-g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/build/xrdp-Fn5kxo/xrdp-0.9.24=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/build/xrdp-Fn5kxo/xrdp-0.9.24=/usr/src/xrdp-0.9.24-4 
      LDFLAGS=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
      CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=3 
      PKG_CONFIG_PATH=/build/xrdp-Fn5kxo/xrdp-0.9.24/pkgconfig

  Compiled with OpenSSL 3.0.13 30 Jan 2024

Operating system & version

Ubuntu 24.04.2 LTS

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

xorg

What desktop environment do you use?

GNOME

Environment xrdp running on

Physical machine, don't know how to check card

What's your client?

mstsc.exe from Windows 10, 19044.6093

Area(s) with issue?

Clipboard

Steps to reproduce

  1. On remote side (Ubuntu via xrdp for me) copy something into the clipboard (text or file in Nautilus)
  2. Wait when screen on remote machine will automatically locked due to inactivity
  3. Try to paste text into any text field (Firefox, VS Code, etc.) or file in Explorer

✔️ Expected Behavior

You are able to paste things despite the state of the remote side.

❌ Actual Behavior

When you try to paste, Windows application hang until you disconnected from remote machine. After disconnect you clipboard is cleared. Although this is understandable for files that can be quite large, for text it is still expected that it can be inserted.

Anything else?

Windows version:

Выпуск	Windows 10 IoT Корпоративная LTSC
Версия	21H2
Дата установки	‎02.‎01.‎2025
Сборка ОС	19044.6093
Взаимодействие	Windows Feature Experience Pack 1000.19062.1000.0

I don't know is this is an xrdp bug or mstsc.exe bug, because I cannot test with remote connection to the Windows machine. But it is very annoying. Due to other bug in xrdp, each disconnection from the remote host resets configured layouts so I have to manually execute

setxkbmap -layout 'us,ru'

each time a reconnected. Putting this line into /etc/xrdp/reconnectwm.sh does not work (#3579)...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions