How to Configure Xorg as Default GNOME Session in Fedora

Wayland is a secure display protocol as well as a library implementing the protocol, that enables communication between your video hardware (the server) and clients (each and every single application on your system). Wayland is the default GNOME display server.

If you notice that some of your applications are not functioning as expected in Wayland, you can switch to GNOME in X11 as shown in this article.

To run GNOME in X11 on Fedora Linux, there are two ways to do it. The first is by choosing the Gnome on xorg option in the session chooser on the login screen and the second way is by manually editing the GNOME display manager (GDM) configuration as shown below.

First, determine the session number and other details by running the following loginctl command.

# loginctl
Check Login Session Number
Check Login Session Number

Next, find out the type of session is running by using the following command (replace 2 with your actual session number).

# loginctl show-session 2 -p Type
Check Session Type
Check Session Type

Now open the GDM configuration file /etc/gdm/custom.conf using your favorite text editor.

# vi /etc/gdm/custom.conf 

Then uncomment the line below to force the login screen to use Xorg display manager.


And add the following line to the [daemon] section as well.


The whole GDM configuration file should now look like this.

# GDM configuration storage



Save the changes in the file and reboot your system to start using xorg as the default GNOME session manager.

After the system reboot, verify again your session number and type by running the following commands, it should show Xorg.

# loginctl	# get session number from command output 
# loginctl show-session 2 -p Type
Check Gnome Session Type
Check Gnome Session Type

That’s all! In this article, we have explained how to configure Xorg as the default GNOME session in Fedora Linux. Do not forget to reach us via the feedback form below, for any questions or comments.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

3 thoughts on “How to Configure Xorg as Default GNOME Session in Fedora”

  1. Unfortunately, I got trapped after rebooting in a black screen that says: “Booting, ‘Fedora Linux (6.0.7-301.fc37.x86_64) 37 Workstation Edition)

    Does anyone have an alternate solution for setting xfce as the default desktop for all users?

  2. If you did this and get trapped in a frozen black screen after restart, you need to undo the changes you made to the custom.conf file. The only way to do this is to boot from a live USB, mount the current Linux file system, switch to the root user, launch the nautilus and edit that file to undo the changes.


Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.