git.iko.soy/typeable/nixpkgs
on master help sign in
gnome3.gdm: fix wayland detection

Apparently, wayland session were not used at all until now.

commit3bfa8563d10e356f085f122d8982ccd13647ff02 authorJan Tojnar <jtojnar@gmail.com> dateFri 27 Apr 2018, 19:03 (9 years ago) parent6f23e14
2 files changed+13−2
pkgs/desktops/gnome-3/core/gdm/default.nix+2−2 pkgs/desktops/gnome-3/core/gdm/fix-paths.patch+11
pkgs/desktops/gnome-3/core/gdm/default.nix+2−2
@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, substituteAll, pkgconfig, glib, itstool, libxml2, xorg, dbus
22, intltool, accountsservice, libX11, gnome3, systemd, autoreconfHook
33, gtk, libcanberra-gtk3, pam, libtool, gobjectIntrospection, plymouth
4−, librsvg, coreutils }:
4+, librsvg, coreutils, xwayland }:
55
66stdenv.mkDerivation rec {
77 name = "gdm-${version}";
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
3838 patches = [
3939 (substituteAll {
4040 src = ./fix-paths.patch;
41− inherit coreutils plymouth;
41+ inherit coreutils plymouth xwayland;
4242 })
4343 ./sessions_dir.patch
4444 ./gdm-x-session_extra_args.patch
pkgs/desktops/gnome-3/core/gdm/fix-paths.patch+11
@@ -1,3 +1,14 @@
1+--- a/daemon/gdm-local-display-factory.c
2++++ b/daemon/gdm-local-display-factory.c
3+@@ -450,7 +450,7 @@
4+ #ifdef ENABLE_WAYLAND_SUPPORT
5+ gboolean wayland_enabled = FALSE;
6+ if (gdm_settings_direct_get_boolean (GDM_KEY_WAYLAND_ENABLE, &wayland_enabled)) {
7+- if (wayland_enabled && g_file_test ("/usr/bin/Xwayland", G_FILE_TEST_IS_EXECUTABLE) ) {
8++ if (wayland_enabled && g_file_test ("@xwayland@/bin/Xwayland", G_FILE_TEST_IS_EXECUTABLE) ) {
9+ session_type = "wayland";
10+ }
11+ }
112--- a/daemon/gdm-manager.c
213+++ b/daemon/gdm-manager.c
314@@ -147,7 +147,7 @@