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

window not showing desktop background when logged in with non-root user #3077

Open
modernNeo opened this issue May 17, 2024 · 3 comments
Open
Labels

Comments

@modernNeo
Copy link

modernNeo commented May 17, 2024

xrdp version

0.9.21.1

Detailed xrdp version, build options

xrdp 0.9.21.1
  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 -ffile-prefix-map=/build/xrdp-QTF2mN/xrdp-0.9.21.1=. -fstack-protector-strong -Wformat -Werror=format-security 
      LDFLAGS=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed
      CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2 
      PKG_CONFIG_PATH=/build/xrdp-QTF2mN/xrdp-0.9.21.1/pkgconfig

  Compiled with OpenSSL 3.0.11 19 Sep 2023

Operating system & version

Debian GNU/Linux 12 (bookworm)

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

xorgxrdp 1:0.9.19-1

What desktop environment do you use?

Cinnamon

Environment xrdp running on

physical machine with Alder Lake-P Integrated Graphics Controller

What's your client?

No response

Area(s) with issue?

Other

Steps to reproduce

connected via RDP to machine with xrdp using remmina

✔️ Expected Behavior

expected an interface that has the desktop background

❌ Actual Behavior

Screenshot from 2024-05-17 02-52-28

Anything else?

xrdp.log

[20240517-02:50:10] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.1.92 port 40580
[20240517-02:50:10] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240517-02:50:10] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240517-02:50:10] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240517-02:50:10] [INFO ] Connected client computer name: jace-debian-thi
[20240517-02:50:10] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20240517-02:50:10] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20240517-02:50:11] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000409]
[20240517-02:50:11] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20240517-02:50:11] [INFO ] TLS connection established from ::ffff:192.168.1.92 port 40580: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20240517-02:50:11] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20240517-02:50:11] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 7864320 MB cache entries 2000
[20240517-02:50:11] [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
[20240517-02:50:11] [WARN ] Client Capability: not enough orders supported by client, client wants off screen bitmap but offscreen bitmaps disabled
[20240517-02:50:11] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20240517-02:50:11] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20240517-02:50:16] [INFO ] connecting to sesman on 127.0.0.1:3350
[20240517-02:50:16] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20240517-02:50:16] [INFO ] sesman connect ok
[20240517-02:50:16] [INFO ] sending login info to session manager. Please wait...
[20240517-02:50:16] [INFO ] xrdp_wm_log_msg: login successful for user jace on display 10
[20240517-02:50:16] [INFO ] login successful for user jace on display 10
[20240517-02:50:16] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20240517-02:50:16] [INFO ] started connecting
[20240517-02:50:16] [INFO ] lib_mod_connect: connecting via UNIX socket
[20240517-02:50:16] [INFO ] lib_mod_log_peer: xrdp_pid=2419 connected to X11rdp_pid=1272 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.1.92 client_port=40580
[20240517-02:50:16] [INFO ] connected ok
[20240517-02:52:57] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[20240517-02:52:57] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed

xrdp-sesman.log

[20240517-02:50:16] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 55320
[20240517-02:50:16] [INFO ] ++ reconnected session: username jace, display :10.0, session_pid 1270, ip ::ffff:192.168.1.92:40580 - socket: 12
[20240517-02:50:16] [ERROR] sesman_data_in: scp_process_msg failed
[20240517-02:50:16] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20240517-02:50:16] [INFO ] Starting session reconnection script on display 10: /etc/xrdp/reconnectwm.sh
[20240517-02:50:16] [INFO ] Process 2423 has exited

xorg.conf

Section "ServerLayout"
    Identifier "X11 Server"
    Screen "Screen (xrdpdev)"
    InputDevice "xrdpMouse" "CorePointer"
    InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection

Section "ServerFlags"
    # This line prevents "ServerLayout" sections in xorg.conf.d files
    # overriding the "X11 Server" layout (xrdp #1784)
    Option "DefaultServerLayout" "X11 Server"
    Option "DontVTSwitch" "on"
    Option "AutoAddDevices" "off"
EndSection

Section "Module"
    Load "dbe"
    Load "ddc"
    Load "extmod"
    Load "glx"
    Load "int10"
    Load "record"
    Load "vbe"
    Load "glamoregl"
    Load "xorgxrdp"
    Load "fb"
EndSection

Section "InputDevice"
    Identifier "xrdpKeyboard"
    Driver "xrdpkeyb"
EndSection

Section "InputDevice"
    Identifier "xrdpMouse"
    Driver "xrdpmouse"
EndSection

Section "Monitor"
    Identifier "Monitor"
    Option "DPMS"
    HorizSync 30-80
    VertRefresh 60-75
    ModeLine "1920x1080" 138.500 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
    ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750 +HSync +VSync
    Modeline "1368x768" 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync
    Modeline "1600x900" 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync
EndSection

Section "Device"
    Identifier "Video Card (xrdpdev)"
    Driver "xrdpdev"
    Option "DRMDevice" "/dev/dri/renderD128"
    Option "DRI3" "1"
EndSection

Section "Screen"
    Identifier "Screen (xrdpdev)"
    Device "Video Card (xrdpdev)"
    Monitor "Monitor"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024" "1600x900" "1920x1080"
    EndSubSection
EndSection

```
@modernNeo modernNeo added the bug label May 17, 2024
@modernNeo modernNeo changed the title window not properly sizing window not showing desktop background May 17, 2024
@modernNeo modernNeo changed the title window not showing desktop background window not showing desktop background when logged in with non-root user May 17, 2024
@matt335672
Copy link
Member

This is possibly related to (but not the same as) #3053

What's in the directory /usr/share/xsessions/ on your system?

@Hiero32
Copy link
Contributor

Hiero32 commented May 21, 2024

@modernNeo
Did you logout from local session before login to xrdp session?
It is not allowed the same user login to both local and xrdp session at the same.

@modernNeo
Copy link
Author

oh, sorry for not responding sooner...for some reason github didn't notify me of the new comments on this issue....will follow-up tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants