You are not logged in.

#1 2020-11-28 04:26:29

TecumTechCEO
Member
Registered: 2020-11-28
Posts: 1

XRDP GNOME Session Fails to Start

On a fresh Arch installation, I installed `gnome`, `xrdp-git` and `xorgxrdp` with `yay`.

I added `allowed_users=anybody` to `/etc/X11/Xwrapper.config` and enabled the `xrdp` and `xrdp-sesman` services.

My `/etc/X11/xinit/xinitrc` is as follows:

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then

    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then

    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

# twm &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login


export XDG_SESSION_TYPE=x11
exec dbus-launch gnome-session

When I login over RDP, I get the sad computer icon and "Oh no! Something has gone wrong. A problem has occurred and the system can't recover. Please log out and try again."

Replacing `exec dbus-launch gnome-session` with `exec dbus-launch xfce4-session` brings me to a working session, so it appears to be an issue with GNOME specifically.

I appreciate any help you may be able to offer.

Offline

#2 2021-11-26 16:02:09

labotsirc
Member
Registered: 2013-08-21
Posts: 108

Re: XRDP GNOME Session Fails to Start

Hi TecumTechCEO,
I have the exact same problem, i.e., works with xfce4 but fails with gnome. Any update?

Offline

#3 2021-11-26 16:37:37

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: XRDP GNOME Session Fails to Start

Why are you using dbus-launch?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2021-12-15 13:17:40

s094392
Member
Registered: 2015-05-10
Posts: 1

Re: XRDP GNOME Session Fails to Start

I have same problem.

Offline

Board footer

Powered by FluxBB