mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
gnome3.gdm: fix wayland detection
Apparently, wayland session were not used at all until now.
This commit is contained in:
parent
6f23e142cb
commit
3bfa8563d1
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchurl, substituteAll, pkgconfig, glib, itstool, libxml2, xorg, dbus
|
{ stdenv, fetchurl, substituteAll, pkgconfig, glib, itstool, libxml2, xorg, dbus
|
||||||
, intltool, accountsservice, libX11, gnome3, systemd, autoreconfHook
|
, intltool, accountsservice, libX11, gnome3, systemd, autoreconfHook
|
||||||
, gtk, libcanberra-gtk3, pam, libtool, gobjectIntrospection, plymouth
|
, gtk, libcanberra-gtk3, pam, libtool, gobjectIntrospection, plymouth
|
||||||
, librsvg, coreutils }:
|
, librsvg, coreutils, xwayland }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gdm-${version}";
|
name = "gdm-${version}";
|
||||||
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
patches = [
|
patches = [
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit coreutils plymouth;
|
inherit coreutils plymouth xwayland;
|
||||||
})
|
})
|
||||||
./sessions_dir.patch
|
./sessions_dir.patch
|
||||||
./gdm-x-session_extra_args.patch
|
./gdm-x-session_extra_args.patch
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
--- a/daemon/gdm-local-display-factory.c
|
||||||
|
+++ b/daemon/gdm-local-display-factory.c
|
||||||
|
@@ -450,7 +450,7 @@
|
||||||
|
#ifdef ENABLE_WAYLAND_SUPPORT
|
||||||
|
gboolean wayland_enabled = FALSE;
|
||||||
|
if (gdm_settings_direct_get_boolean (GDM_KEY_WAYLAND_ENABLE, &wayland_enabled)) {
|
||||||
|
- if (wayland_enabled && g_file_test ("/usr/bin/Xwayland", G_FILE_TEST_IS_EXECUTABLE) ) {
|
||||||
|
+ if (wayland_enabled && g_file_test ("@xwayland@/bin/Xwayland", G_FILE_TEST_IS_EXECUTABLE) ) {
|
||||||
|
session_type = "wayland";
|
||||||
|
}
|
||||||
|
}
|
||||||
--- a/daemon/gdm-manager.c
|
--- a/daemon/gdm-manager.c
|
||||||
+++ b/daemon/gdm-manager.c
|
+++ b/daemon/gdm-manager.c
|
||||||
@@ -147,7 +147,7 @@
|
@@ -147,7 +147,7 @@
|
||||||
|
Loading…
Reference in New Issue
Block a user