xrdp设置默认的连接桌面

前言

在Debian中有时候安装了多个桌面,比如lxqt、kde等,启动xrdp时会有一个默认的连接桌面,默认的可能不是kde。

环境:
Debian12 + xrdp

# 编辑 sudo cat /etc/xrdp/startwm.sh ,打开类似如下内容

#!/bin/sh
# xrdp X session start script (c) 2015, 2017, 2021 mirabilos
# published under The MirOS Licence

# Rely on /etc/pam.d/xrdp-sesman using pam_env to load both
# /etc/environment and /etc/default/locale to initialise the
# locale and the user environment properly.

if test -r /etc/profile; then
        . /etc/profile
fi

if test -r ~/.profile; then
        . ~/.profile
fi

#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession

注释掉其中的test和exec两行,添加一行设置默认桌面为kde,

exec startplasma-x11
posted @ 2024-12-09 15:51  pandaZzz  阅读(381)  评论(0)    收藏  举报
返回顶部