Switching desktop environments

Fedora Documentation Team Version F36 and newer Last review: 2023-02-10
Different Fedora Linux variants (Spins/Labs) have different default environments. For example, the Fedora workstation uses GNOME as its default desktop environment, while the KDE spin will use KDE. Irrespective of what installation media you used to install Fedora Linux, you can easily try and switch to any of the many other desktop environments that are available without affecting your current desktop environment.

추가 데스크탑 환경 설치 중

당신은 기본 꾸러미 관리자 code]`dnf`를 사용하여 사용 가능한 데스크탑 환경을 나열 할 수 있습니다.

페도라 41 이후로, 터미널에서 [code]`dnf environment list`을 사용하여 사용 가능한 데스크탑 환경을 나열합니다:

$ dnf environment list --available | grep desktop

예전 페도라를 위해, dnf group list 명령을 사용하여 모든 사용 가능한 데스크탑 환경을 나열합니다:

$ dnf group list -v --available | grep desktop

dnf install 명령을 사용하여 필수적인 데스크탑 환경을 설치합니다. 다음과 같은 예로 @ 기호와 함께 접두사를 꼭 붙여주세요:

# dnf install @kde-desktop-environment

Switching desktop environments using a graphical user interface (GUI)

First, install the desired desktop environment as described in Installing additional desktop environments.

You can login to a different desktop for a single session using the login manager. For example, for the Gnome Display Manager (GDM) that is used by default on the Fedora Linux Workstation:

  1. On the login screen, select a user from the list.

  2. Click on the Preferences icon right below the password field. A window appears with a list of several different desktop environments.

  3. Choose one, and enter password as usual.

Login Screen

Using switchdesk

You also change your desktop environment using the switchdesk tool. It also allows you to change default desktop environment for individual users, and for all users.

  1. Install the switchdesk and switchdesk-gui packages:

    # dnf install switchdesk switchdesk-gui
  2. Run the Desktop Switching Tool application.

  3. Select the default desktop from the list of available desktop environments, and confirm.

Desktop Switching Tool

Switching desktop environments using the command line interface (CLI)

First, install the desired desktop environment as described in Installing additional desktop environments.

Install the switchdesk package:

# dnf install switchdesk

Pass the selected desktop environment as the only argument to the switchdesk command, for example:

# switchdesk kde

See the switchdesk(1) man page for more information.

Manually editing the system configuration

You can also change your default desktop environment using the /etc/sysconfig/desktop system configuration file. If this file does not exists, please create it. This file specifies the desktop for new users and the display manager to run when entering runlevel 5.

Please create/edit it using your preferred text editor. Note that you will need administrator (root) privileges to create or edit this file.

Correct values are:

DESKTOP="<value>", where <value> is one of the following:

  1. GNOME - Selects the GNOME desktop environment.

  2. KDE - Selects the KDE desktop environment.

DISPLAYMANAGER="<value>", where <value> is one of the following:

  1. GNOME - Selects the GNOME Display Manager.

  2. KDE - Selects the KDE Display Manager.

  3. XDM - Selects the X Display Manager.