From 6a4ba11708b08353463faf9ee45d45356bb86129 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Mon, 15 Jun 2020 09:56:31 +0200 Subject: [PATCH] Use both config and configdir to avoid any defaults If the -config switch is left out, the server will attempt to load settings from the default file /etc/X11/xorg.conf. This file is now usually non-existent; most distributions preferring to have the configuration through files in /etc/X11/xorg.conf.d instead. But in order to prevent any legacy settings that are put there to interfere with XRDP, _both_ config and configdir should be redirected to the xrdp/ subdirectory. This will overspecify the configuration by having the xrdp/xorg.conf file probably read twice; this does not seem to cause any harm. Incidentally, it does seem to make the X server now pick up xrdpdev as a GPUDevice(?). --- sesman/sesman.ini.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sesman/sesman.ini.in b/sesman/sesman.ini.in index b7dbfcb0..e237d049 100644 --- a/sesman/sesman.ini.in +++ b/sesman/sesman.ini.in @@ -85,6 +85,8 @@ SyslogLevel=DEBUG ; param=Xorg ; Leave the rest paramaters as-is unless you understand what will happen. +param=-config +param=xrdp/xorg.conf param=-configdir param=xrdp param=-noreset