GNOME: Difference between revisions

From NixOS Wiki
imported>Mic92
No edit summary
imported>Angristan
Add install hints
Line 1: Line 1:
== Gnome ==
== Gnome ==
GNOME (/(ɡ)noʊm/) is a desktop environment that aims to be simple and easy to use. It is designed by The GNOME Project and is composed entirely of free and open-source software. GNOME is a part of the GNU Project.
GNOME (/(ɡ)noʊm/) is a desktop environment that aims to be simple and easy to use. It is designed by The GNOME Project and is composed entirely of free and open-source software. GNOME is a part of the GNU Project.
=== Install Gnome ===
To use Gnome with GDM on Xorg, add this to your configuration.nix:
<syntaxHighlight>
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.gdm.wayland = false;
services.xserver.desktopManager.gnome3.enable = true;
</syntaxHighlight>


=== Applications fails to start because dconf/gconf is missing ===
=== Applications fails to start because dconf/gconf is missing ===
Line 8: Line 20:
<syntaxHighlight>
<syntaxHighlight>
GLib.GException: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information
GLib.GException: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information
</syntaxHighlight>


when running Gtk applications you need to add gconf to the list of dbus packages in your configuration.nix.
when running Gtk applications you need to add gconf to the list of dbus packages in your configuration.nix.

Revision as of 19:32, 22 April 2019

Gnome

GNOME (/(ɡ)noʊm/) is a desktop environment that aims to be simple and easy to use. It is designed by The GNOME Project and is composed entirely of free and open-source software. GNOME is a part of the GNU Project.


Install Gnome

To use Gnome with GDM on Xorg, add this to your configuration.nix:

services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.gdm.wayland = false;
services.xserver.desktopManager.gnome3.enable = true;

Applications fails to start because dconf/gconf is missing

If you are getting an error like:

GLib.GException: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information

when running Gtk applications you need to add gconf to the list of dbus packages in your configuration.nix.
In Gnome3 gconf was replaced by dconf. For simplicity you can just add both:

<syntaxHighlight lang=nix>
services.dbus.packages = with pkgs; [ gnome3.dconf gnome2.GConf ];

After applying the update one also has restart their desktop session to refresh the user-specific dbus session.