# XRDP with XFCE not working - XRDP always starts up with GNOME

**URL:** https://forums.rockylinux.org/t/xrdp-with-xfce-not-working-xrdp-always-starts-up-with-gnome/14489
**Category:** Rocky Linux Help & Support
**Created:** [June 7, 2024, 3:05pm UTC](https://forums.rockylinux.org/t/xrdp-with-xfce-not-working-xrdp-always-starts-up-with-gnome/14489 "2024-06-07T15:05:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tbet](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@tbet](https://forums.rockylinux.org/u/tbet)
#### Post date: [June 7, 2024, 3:05pm UTC](https://forums.rockylinux.org/t/xrdp-with-xfce-not-working-xrdp-always-starts-up-with-gnome/14489/1 "2024-06-07T15:05:06Z")

</div>

Hi,  
I have installed ROcky Linux 8.10 with GNOME.  
In addition XFCE is installed and can be started when being locally at the machine by the login screen - works well - XFCE comes up flawlessly.

For XRDP I tried to :

- set “xfce4-session” in .xsession in my users home directory
- set “startxfce4” in startwm.sh in my users home directory alternatively/in addition

… but alwys I end up with GNOME in a RDP session.

By setting “export GNOME\_SHELL\_SESSION\_MODE=classic” I can at least switch to classic GNOME - anyway also here .xsession and startwm.sh are ignored - and xfce4 is not chosen.

Has somebody managed to run over RDP successfully with the standar GNOME installation under Rocky Linux 8 (or 9) another (lightweight) windows manager like xfce or mate ?

If yes - please let me know how … 😉

---

<div class="post-metadata">

### Author: ![linde](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@linde](https://forums.rockylinux.org/u/linde)
#### Post date: [June 7, 2024, 3:18pm UTC](https://forums.rockylinux.org/t/xrdp-with-xfce-not-working-xrdp-always-starts-up-with-gnome/14489/2 "2024-06-07T15:18:43Z")

</div>

My `~/.xsession` has mode 700 and the following contents:

```auto
/usr/bin/dbus-launch --exit-with-session xfce4-session

```

I have no user `startwm.sh` file and no relevant changes to the system `startwm.sh`.

---

<div class="post-metadata">

### Author: ![tbet](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@tbet](https://forums.rockylinux.org/u/tbet)
#### Post date: [June 7, 2024, 3:34pm UTC](https://forums.rockylinux.org/t/xrdp-with-xfce-not-working-xrdp-always-starts-up-with-gnome/14489/3 "2024-06-07T15:34:07Z")

</div>

Excellent - that worked out - thank you so much - you made my day 🙏

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)
#### Post date: [August 6, 2024, 3:34pm UTC](https://forums.rockylinux.org/t/xrdp-with-xfce-not-working-xrdp-always-starts-up-with-gnome/14489/4 "2024-08-06T15:34:44Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
