Closed morgancoxuk closed 1 year ago
On RHEL(etc), if the user doesn't have a ~/.Xclients or ~/.xsession file, the system will call the shell script /etc/X11/xinit/Xclients
.
If this file is unchanged, the script should call KDE by default on your setup, as the supplied RHEL setup scripts do not support XFCE. It's odd it isn't, so I suspect there's more going on here than is obvious.
Again, if the file is unchanged, you should be able to get KDE working by creating /etc/sysconfig/desktop
with this line:-
DESKTOP=KDE
You can try that. If that doesn't work, add some tracing to the file /usr/libexec/xrdp/startwm.sh
by putting a set -x
command near the top.
Thanks - I already had DESKTOP=KDE in /etc/sysconfig/desktop. This doesn't appear to be working.
If you get a trace from startwm.sh, post it here and we can look at it.
Here is the logs when adding set -x to /usr/libexec/xrdp/startwm.sh (with no ~/.Xclients)
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ wm_start
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /etc/default/locale ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /etc/X11/Xsession ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -f /etc/alpine-release ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /etc/X11/xinit/Xsession ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ pre_start
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /etc/profile ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ . /etc/profile
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -x /usr/bin/id ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -z 1000 ']'
May 18 10:09:36 mcox xrdp-sesman[1662]: ++++ /usr/bin/id -un
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ USER=mcox
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ LOGNAME=mcox
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ MAIL=/var/spool/mail/mcox
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' 1000 = 0 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ pathmunge /usr/local/sbin after
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ case ":${PATH}:" in
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ pathmunge /usr/sbin after
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ case ":${PATH}:" in
May 18 10:09:36 mcox xrdp-sesman[1664]: ++++ /usr/bin/hostname
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ HOSTNAME=mcox.rhel8.desktop
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ HISTSIZE=1000
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' ignoredups = ignorespace ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ export HISTCONTROL=ignoredups
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ HISTCONTROL=ignoredups
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' 1000 -gt 199 ']'
May 18 10:09:36 mcox xrdp-sesman[1666]: ++++ /usr/bin/id -gn
May 18 10:09:36 mcox xrdp-sesman[1668]: ++++ /usr/bin/id -un
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' mcox = mcox ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ umask 002
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/bash_completion.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/bash_completion.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n '4.4.20(1)-release' -a -n '' -a -z '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/colorgrep.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/colorgrep.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ /usr/libexec/grepconf.sh -c
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'grep=grep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'egrep=egrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'fgrep=fgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/colorls.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/colorls.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' '!' -t 0 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ return
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/colorxzgrep.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/colorxzgrep.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ /usr/libexec/grepconf.sh -c
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'xzgrep=xzgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'xzegrep=xzegrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'xzfgrep=xzfgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/colorzgrep.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/colorzgrep.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -f /usr/libexec/grepconf.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ /usr/libexec/grepconf.sh -c
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'zgrep=zgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'zfgrep=zfgrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias 'zegrep=zegrep --color=auto'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/flatpak.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/flatpak.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ command -v flatpak
May 18 10:09:36 mcox xrdp-sesman[1677]: +++++ unset G_MESSAGES_DEBUG
May 18 10:09:36 mcox xrdp-sesman[1677]: +++++ echo /home/mcox/.local/share/flatpak
May 18 10:09:36 mcox xrdp-sesman[1677]: +++++ GIO_USE_VFS=local
May 18 10:09:36 mcox xrdp-sesman[1677]: +++++ flatpak --installations
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ new_dirs=
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ read -r install_path
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ share_path=/home/mcox/.local/share/flatpak/exports/share
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ case ":$XDG_DATA_DIRS:" in
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ :
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ read -r install_path
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ share_path=/var/lib/flatpak/exports/share
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ case ":$XDG_DATA_DIRS:" in
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ :
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ read -r install_path
May 18 10:09:36 mcox xrdp-sesman[1678]: +++++ echo ''
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ new_dirs=
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export XDG_DATA_DIRS
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ XDG_DATA_DIRS=/home/mcox/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/gawk.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/gawk.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/gnome-ssh-askpass.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/gnome-ssh-askpass.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export SSH_ASKPASS
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/histtimeformat.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/histtimeformat.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export 'HISTTIMEFORMAT=%d/%m/%y %T '
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ HISTTIMEFORMAT='%d/%m/%y %T '
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export HISTSIZE=12000
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ HISTSIZE=12000
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export HISTFILESIZE=22000
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ HISTFILESIZE=22000
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/kde.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/kde.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z /usr ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ grep -qs '^PRELINKING=yes' /etc/sysconfig/prelink
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/lang.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/lang.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n en_GB.UTF-8 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ LANG_backup=en_GB.UTF-8
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ for config in /etc/locale.conf "${HOME}/.i18n"
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -f /etc/locale.conf ']'
May 18 10:09:36 mcox xrdp-sesman[1681]: +++++ /usr/bin/sed -r -e 's/^[[:blank:]]*([[:upper:]_]+)=([[:print:][:digit:]\._-]+|"[[:print:][:digit:]\._-]+")/export \1=\2/;t;d' /etc/locale.conf
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ eval export 'LANG="en_GB.UTF-8"'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++++ export LANG=en_GB.UTF-8
May 18 10:09:36 mcox xrdp-sesman[1625]: +++++ LANG=en_GB.UTF-8
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ for config in /etc/locale.conf "${HOME}/.i18n"
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -f /home/mcox/.i18n ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n en_GB.UTF-8 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ LANG=en_GB.UTF-8
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ unset LANG_backup config
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n en_GB.UTF-8 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' dumb = linux ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/less.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/less.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z '||/usr/bin/lesspipe.sh %s' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/PackageKit.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/PackageKit.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ [[ -n '' ]]
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/session_tmout.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/session_tmout.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ TMOUT=900
May 18 10:09:36 mcox xrdp-sesman[1625]: /etc/profile.d/session_tmout.sh: line 1: TMOUT: readonly variable
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ readonly TMOUT
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export TMOUT
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/ssh-x-forwarding.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/ssh-x-forwarding.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ return
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/vim.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/vim.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n '4.4.20(1)-release' -o -n '' -o -n '' ']'
May 18 10:09:36 mcox xrdp-sesman[1683]: +++++ /usr/bin/id -u
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' 1000 -le 200 ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ alias vi
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/vte.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/vte.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -n '4.4.20(1)-release' -o -n '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ [[ hxB == *i* ]]
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ return 0
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/which2.sh ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/which2.sh
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ case "$(basename $(readlink /proc/$$/exe))" in
May 18 10:09:36 mcox xrdp-sesman[1686]: ++++++ readlink /proc/1625/exe
May 18 10:09:36 mcox xrdp-sesman[1685]: +++++ basename /usr/bin/bash
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ which_declare='declare -f'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ which_opt=-f
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export which_declare
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export -f which
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ for i in /etc/profile.d/*.sh /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -r /etc/profile.d/sh.local ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' hxB '!=' hxB ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/profile.d/sh.local
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ unset i
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ unset -f pathmunge
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -n '4.4.20(1)-release' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -f /etc/bashrc ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /etc/bashrc
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -z Y ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ '[' -r /home/mcox/.bash_profile ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ . /home/mcox/.bash_profile
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -f /home/mcox/.bashrc ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ . /home/mcox/.bashrc
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ '[' -f /etc/bashrc ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ . /etc/bashrc
May 18 10:09:36 mcox xrdp-sesman[1625]: +++++ '[' -z Y ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ [[ /home/mcox/.local/bin:/home/mcox/bin:/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin =~ /home/mcox/\.local/bin:/home/mcox/bin: ]]
May 18 10:09:36 mcox xrdp-sesman[1625]: ++++ export PATH
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ return 0
May 18 10:09:36 mcox xrdp-sesman[1625]: ++ . /etc/X11/xinit/Xsession
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -z '' ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ errfile=/home/mcox/.xsession-errors
May 18 10:09:36 mcox xrdp-sesman[1689]: +++ umask 077
May 18 10:09:36 mcox xrdp-sesman[1689]: +++ cp /dev/null /home/mcox/.xsession-errors
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ chmod 600 /home/mcox/.xsession-errors
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ '[' -x /sbin/restorecon ']'
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ /sbin/restorecon /home/mcox/.xsession-errors
May 18 10:09:36 mcox xrdp-sesman[1625]: +++ exec
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpInDeferredRepeatCallback:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybChangeKeyboardControl:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybChangeKeyboardControl: autoRepeat off
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpInDeferredRepeatCallback:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybChangeKeyboardControl:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybChangeKeyboardControl: autoRepeat off
May 18 10:09:36 mcox xrdp-chansrv[1631]: [INFO ] Detected remote drive 'media'
May 18 10:09:36 mcox xrdp-chansrv[1631]: [INFO ] sound_process_training: round trip time 15
May 18 10:09:36 mcox xrdp-sesman[1624]: [WARN ] Window manager (pid 1625, display 10) exited quickly (0 secs). This could indicate a window manager config problem
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] Calling auth_stop_session and auth_end from pid 1624
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] Terminating X server (pid 1626) on display 10
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] Terminating the xrdp channel server (pid 1631) on display 10
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpmouseControl: what 2
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpmouseDeviceOff:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybControl: what 2
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybDeviceOff:
May 18 10:09:36 mcox xrdp-sesman[1626]: xorgxrdpDamageDestroy:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybControl: what 3
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpkeybUnInit: drv 0x563a49d37620 info 0x563a4a000e80, flags 0x0
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpUnregisterInputCallback: proc 0x7f0a170e56b0
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpmouseControl: what 3
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpmouseUnInit: drv 0x563a49d16740 info 0x563a49e91f20, flags 0x0
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpUnregisterInputCallback: proc 0x7f0a172e8d50
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpCloseScreen:
May 18 10:09:36 mcox xrdp-sesman[1626]: xorgxrdpDownDown:
May 18 10:09:36 mcox xrdp-sesman[1626]: xorgxrdpDownDown: 1
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDeinit:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDeinit: disconnecting clientCon
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDisconnect:
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpRemoveClientConFromDev: removing clientCon 0x563a4a03e9d0
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDeinit: deleting file /run/xrdp/xrdp_display_10
May 18 10:09:36 mcox xrdp-sesman[1626]: rdpClientConDeinit: deleting file /run/xrdp/xrdp_disconnect_display_10
May 18 10:09:36 mcox systemd[1]: home-mcox-thinclient_drives.mount: Succeeded.
May 18 10:09:36 mcox xrdp-sesman[1626]: (II) Server terminated successfully (0). Closing log file.
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] X server on display 10 (pid 1626) returned exit code 0 and signal number 0
May 18 10:09:36 mcox xrdp-sesman[1631]: Global configuration:
May 18 10:09:36 mcox xrdp-sesman[1631]: UseUnixSocket (derived): true
May 18 10:09:36 mcox xrdp-sesman[1631]: Security configuration:
May 18 10:09:36 mcox xrdp-sesman[1631]: RestrictOutboundClipboard: none
May 18 10:09:36 mcox xrdp-sesman[1631]: RestrictInboundClipboard: none
May 18 10:09:36 mcox xrdp-sesman[1631]: Chansrv configuration:
May 18 10:09:36 mcox xrdp-sesman[1631]: EnableFuseMount true
May 18 10:09:36 mcox xrdp-sesman[1631]: FuseMountName: thinclient_drives
May 18 10:09:36 mcox xrdp-sesman[1631]: FileMask: 077
May 18 10:09:36 mcox xrdp-sesman[1631]: Nautilus 3 Flist Format: false
May 18 10:09:36 mcox xrdp-sesman[1631]: chansrv::main: using log file [/home/mcox/.local/share/xrdp/xrdp-chansrv.10.log]
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] xrdp channel server for display 10 (pid 1631) exit code 0 and signal number 0
May 18 10:09:36 mcox xrdp-sesman[1624]: [INFO ] cleanup_sockets:
May 18 10:09:36 mcox xrdp-sesman[1020]: [INFO ] Process 1624 has exited
May 18 10:09:36 mcox systemd-logind[905]: Session c2 logged out. Waiting for processes to exit.
Two things:-
1) What's in /home/mcox/.xsession-errors
?
2) You're getting this error:-
/etc/profile.d/session_tmout.sh: line 1: TMOUT: readonly variable
See #2636 for why setting a readonly TMOUT is somewhat brittle and fairly pointless. It may or may not be related, but it's worth addressing I think.
Hi Matt335672
1.
+++ SWITCHDESKPATH=/usr/share/switchdesk
+++ . /etc/X11/xinit/xinitrc-common
++++ '[' -r /etc/profile.d/lang.sh ']'
++++ . /etc/profile.d/lang.sh
+++++ '[' -n en_GB.UTF-8 ']'
+++++ LANG_backup=en_GB.UTF-8
+++++ for config in /etc/locale.conf "${HOME}/.i18n"
+++++ '[' -f /etc/locale.conf ']'
++++++ /usr/bin/sed -r -e 's/^[[:blank:]]*([[:upper:]_]+)=([[:print:][:digit:]\._-]+|"[[:print:][:digit:]\._-]+")/export \1=\2/;t;d' /etc/locale.conf
+++++ eval export 'LANG="en_GB.UTF-8"'
++++++ export LANG=en_GB.UTF-8
++++++ LANG=en_GB.UTF-8
+++++ for config in /etc/locale.conf "${HOME}/.i18n"
+++++ '[' -f /home/mcox/.i18n ']'
+++++ '[' -n en_GB.UTF-8 ']'
+++++ LANG=en_GB.UTF-8
+++++ unset LANG_backup config
+++++ '[' -n '' ']'
+++++ '[' -n en_GB.UTF-8 ']'
+++++ '[' dumb = linux ']'
++++ '[' -r /home/mcox/.profile ']'
++++ userresources=/home/mcox/.Xresources
++++ usermodmap=/home/mcox/.Xmodmap
++++ userxkbmap=/home/mcox/.Xkbmap
++++ sysresources=/etc/X11/Xresources
++++ sysmodmap=/etc/X11/Xmodmap
++++ sysxkbmap=/etc/X11/Xkbmap
++++ '[' -r /etc/X11/Xresources ']'
++++ xrdb -nocpp -merge /etc/X11/Xresources
++++ '[' -r /home/mcox/.Xresources ']'
++++ '[' -r /etc/X11/Xkbmap ']'
++++ '[' -r /home/mcox/.Xkbmap ']'
++++ '[' -r /etc/X11/Xkbmap -o -r /home/mcox/.Xkbmap ']'
++++ '[' -r /etc/X11/Xmodmap ']'
++++ xmodmap /etc/X11/Xmodmap
++++ '[' -r /home/mcox/.Xmodmap ']'
++++ for file in /etc/X11/xinit/xinitrc.d/*
++++ . /etc/X11/xinit/xinitrc.d/00-start-message-bus.sh
+++++ '[' -z unix:path=/run/user/1000/bus ']'
++++ for file in /etc/X11/xinit/xinitrc.d/*
++++ . /etc/X11/xinit/xinitrc.d/10-qt5-check-opengl2.sh
+++++ '[' -z '' ']'
++++++ LANG=C
++++++ glxinfo
++++++ grep '^OpenGL version string: '
++++++ head -n 1
++++++ sed -e 's/^OpenGL version string: \([0-9]\).*$/\1/g'
+++++ QT5_CHECK_OPENGL_VERSION=4
+++++ '[' 4 == 1 ']'
+++++ unset QT5_CHECK_OPENGL_VERSION
++++ for file in /etc/X11/xinit/xinitrc.d/*
++++ . /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
+++++ systemctl --user import-environment DISPLAY XAUTHORITY
+++++ command -v dbus-update-activation-environment
+++++ dbus-update-activation-environment DISPLAY XAUTHORITY
++++ for file in /etc/X11/xinit/xinitrc.d/*
++++ . /etc/X11/xinit/xinitrc.d/localuser.sh
+++++ '[' -x /usr/bin/xhost ']'
+++++ '[' -x /usr/bin/id ']'
++++++ id -un
+++++ xhost +si:localuser:mcox
++++ '[' -z '' ']'
++++ '[' -z '' ']'
++++ '[' -z '' ']'
++++ '[' -x /usr/bin/ssh-agent ']'
++++ '[' x '!=' x ']'
++++ SSH_AGENT=/usr/bin/ssh-agent
+++ XCLIENTS_D=/etc/X11/xinit/Xclients.d
+++ '[' 0 -eq 1 ']'
+++ case $# in
+++ '[' -x /home/mcox/.xsession ']'
+++ '[' -x /home/mcox/.Xclients ']'
+++ exec -l /bin/bash -c ' /usr/bin/ssh-agent /home/mcox/.Xclients'
readonly TMOUT export TMOUT
Used for hardening - pretty sure its not connected (as previously when just KDE was installed the desktop worked without Xclients file.
e.g
[mcox@mcox ~]$ cat /etc/profile.d/session_tmout.sh
TMOUT=900
readonly TMOUT
export TMOUT
/home/mcox/.Xclients
. The test for it is triggering at the end of the log trace. Can you remove it, or mark it non-executable? The test is at line 85 in .etc/X11/xinit/Xsession
.# set a 15 min timeout policy for bash shell
if [ -z "$TMOUT" ]; then
TMOUT=900
readonly TMOUT
export TMOUT
fi
Reasons are explained in the linked issue. If nothing else, it will prevent the odd error message in log files.
Hi.
I have a XRDP setup, previously I had installed KDE and by default XRDP would login to that.
I have now installed XFCE as well and on login now you get a black screen for a second then quits.
However if my user has a ~/.Xclients file and I uncomment either of these
XRDP loads into the desktop fine.
But I want the default to work - i.e for users with no ~/.Xclients file
Just to confirm with no ~/.Xclients I login and it asks for user/pass (as normal) but straight after entering details the application quits
All I want to do is for XRDP to load 'startkde/startplasma-x11' be default.,
Here are logs (/var/log/messages) from a login where the issue occurs
This is when I first login (by rdp client doesn't store the pass - which is why user login shows as failed initially) - i.e this part shows to the point where you get the XRDP login screen
Then I enter my user / pass
Can anyone help me restore the default XRDP desktop session ?
XRDP is working fine with ~/.Xclients file.