xrdp/xrdp-0.9.15-startwm-openmamba.patch

29 lines
632 B
Diff
Raw Normal View History

--- xrdp-0.9.15/sesman/startwm.sh.orig 2021-02-11 21:26:27.821827145 +0100
+++ xrdp-0.9.15/sesman/startwm.sh 2021-02-11 21:26:32.541910223 +0100
@@ -58,11 +58,23 @@
#start the window manager
wm_start()
{
- if [ -r /etc/default/locale ]; then
- . /etc/default/locale
+ if [ -r /etc/locale.conf ]; then
+ . /etc/locale.conf
export LANG LANGUAGE
fi
+ # openmamba user
+ if [ -r ~/.xinitrc ]; then
+ . ~/.xinitrc
+ exit 0
+ fi
+
+ # openmamba xinit
+ if [ -r /etc/X11/xinit/xinitrc ]; then
+ . /etc/X11/xinit/xinitrc
+ exit 0
+ fi
+
# debian
if [ -r /etc/X11/Xsession ]; then
pre_start