From fda1ed004251b9e81d2cbd49f0b56cb5dc2d089a Mon Sep 17 00:00:00 2001 From: Hiero32 <112747353+Hiero32@users.noreply.github.com> Date: Tue, 21 Feb 2023 21:15:21 +0900 Subject: [PATCH] remove "source /etc/xrdp/export_desktop_session" --- sesman/startwm.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sesman/startwm.sh b/sesman/startwm.sh index 420f18ea..6c22693d 100755 --- a/sesman/startwm.sh +++ b/sesman/startwm.sh @@ -85,13 +85,14 @@ wm_start() if [ -r /etc/X11/Xsession ]; then pre_start - # if /etc/xrdp/export_desktop_session file exists, souurce it. - # /etc/xrdp/export_desktop_session script exports DESKTOP_SESSION environment varible - # The value shall be one of "ls -1 /usr/share/xsessions|cut -d. -f1". - # e.g. export DESKTOP_SESSION=ubuntu - if [ -r /etc/xrdp/export_desktop_session ]; then - . /etc/xrdp/export_desktop_session - fi + # if you want to start preferred desktop environment, + # add following line, + # [ -n "$XRDP_SESSION" ] && export DESKTOP_SESSION= + # in either of following file. + # 1. ~/.profile + # 2. create a file (any filename is OK) in /etc/profile.d + # shall be one of "ls -1 /usr/share/xsessions/" + # e.g. [ -n "$XRDP_SESSION" ] && export DESKTOP_SESSION==ubuntu # STARTUP is the default startup command. # if $1 is empty and STARTUP was not set