Skip to content

/etc/xrdp/reconnectwm.sh does not work #3579

@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?

Session manager (sesman)

Steps to reproduce

  1. Connect to remote machine (Ubuntu in my case). I have Russian keyboard
  2. Close RDP client (mstsc.exe in my case)
  3. Connect to remote machine again (Ubuntu in my case)
  4. Observe that you cannot write Russian characters because keyboard is missing (while you still can chose another language from the language menu)
  5. Run setxkbmap -layout 'us,ru' in the terminal to get keyboard back

✔️ Expected Behavior

After step 3 you should be able to type Russian characters.

❌ Actual Behavior

You are unable to type Russian characters until you manually run setxkbmap -layout 'us,ru'

Anything else?

I found, that losing keyboard is a common problem for xrdp and found an advice on SO to put these lines in /etc/xrdp/reconnectwm.sh

#!/bin/sh

# Write procedures here you want to execute on reconnect
setxkbmap -layout 'us,ru'

But the layout still missing after reconnect. According to /var/log/xrdp-sesman.log this script tries to run.

/var/log/xrdp.log. My user name on Ubuntu side is mingun

xrdp settings is default: xrdp-config-files.zip

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