1

Following this setup routine I installed XFCE4 on Rocky Linux 9. But this does not startup the xfce4-window-manager in init 5.

If I go to init 3 and then startxfce4 as root XFCE4 is being started. This does not work as normal user.

There I get the error-message "Anzeige kann nicht geöffnet werden". Which states that the display can not be opened.

So obviously there is something missing to tell the os to use xfce.

On init5 a different WM starts up. From the process list it seems to be gdm based. If I kill gdm-wayland-session the window-manager restarts.

Update: It is possible to select the cogwheel and select xfce session. As root this starts up a xfce4-session.

As non-root the screen blanks and then the login screen reappears.

2 Answers 2

2
+500

Second edit - reprasing

I think your problem is connected to the gdm - that is usually used for login into Gnome. It loads additional dependencies, which you don't need for xfce. For lightweight environment I would use lightweight login manager.

I would ditch it in favour of lightdm which does not need the dependencies that gdm does.

Edit for more information The LightDM should work out of the box for Xfce.

The configuration for LightDM:

  • you need to disable gdm with sudo systemctl disable gdm
  • install lightdm sudo dnf install lightdm
  • enable lightdm sudo systemctl enable lightdm

If you change the configuration youneed to do sudo systemctl restart lightdm.

The configuration file is at /etc/lightdm/lightdm.conf

For example:

[Seat:*] #type=local #pam-service=lightdm #pam-autologin-service=lightdm-autologin #pam-greeter-service=lightdm-greeter #xserver-command=X #xmir-command=Xmir #xserver-config= #xserver-layout= #xserver-allow-tcp=false #xserver-share=true #xserver-hostname= #xserver-display-number= #xdmcp-manager= #xdmcp-port=177 #xdmcp-key= greeter-session=lightdm-slick-greeter #greeter-hide-users=false #greeter-allow-guest=true #greeter-show-manual-login=false #greeter-show-remote-login=true user-session=default # you need to change it here #allow-user-switching=true #allow-guest=true #guest-session= 

Notice: user-session where you specify your desktop. To get the name you can list /usr/share/xsessions/*.desktop and if you get the name e.g. xfce.desktop you need to change the configuration to: user-session=xfce.

15
  • Can you please explain how to get there and how to enable xfce in lightdm? Commented Jul 17, 2024 at 14:42
  • @Nils okay, I have added information. Commented Jul 17, 2024 at 16:45
  • I installed lightdm, removed gdm and tried to log in - throws me back at the login after a black screen - like gdm before I disabled wayland. Commented Jul 19, 2024 at 13:17
  • @Nils Weird, I have never had issues with it on even on very unique installations. Could tell me more details about your X.org installation? Do you have any part of Wayland installed? Commented Jul 19, 2024 at 15:24
  • groupinstall "Xfce" "base-x" was the setup. So base-x probably contains Wayland and gdm. Commented Jul 20, 2024 at 21:17
1

Putting WaylandEnable=false into section [daemon] in the gdm configuration file /etc/gdm/custom.conf did the trick. After that it is possible to select the xfce-desktop after specifying the user login.

Perhaps someone can explain what that switch does...

1
  • That switch disables wayland in gdm. Commented Jul 17, 2024 at 16:26

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.