Install Gnome on Artix Linux


Prerequisite

Note: This guide uses nvim as it's text editor, substitute with your editor of choice (nano, vim, ...)


Gnome Desktop Environment (GDE)

Gnome is a popular choice as a Desktop Environment

Install Gnome

Install packages

 $ sudo pacman -Syu xorg xorg-xinit gnome

Hitting [Enter] (default choice) for each question until the installation begins

configure ~/.xinitrc

 $ nvim ~/.xinitrc
~/.xinitrc
------------------------------------------------------------

exec  gnome-session

A reboot is nessisary

 $ sudo reboot now

Launch Gnome

 $ startx

Launch automatically at startup

 $ nvim ~/.bash_profile
~/.bash_profile
------------------------------------------------------------

if [[ -z $DISPLAY && $(tty) == /dev/tty1 ]]; then
  XDG_SESSION_TYPE=x11 GDK_BACKEND=x11 exec startx
fi