From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6A4SFezNVmGU/wAAgWs5BA (envelope-from ) for ; Fri, 01 Oct 2021 10:59:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IMnEEOzNVmHXNAAA1q6Kng (envelope-from ) for ; Fri, 01 Oct 2021 08:59:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1C39014F13 for ; Fri, 1 Oct 2021 10:59:24 +0200 (CEST) Received: from localhost ([::1]:50536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWEO3-0007Fm-95 for larch@yhetil.org; Fri, 01 Oct 2021 04:59:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWELn-0004MZ-1A for guix-patches@gnu.org; Fri, 01 Oct 2021 04:57:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWELm-0000wH-DD for guix-patches@gnu.org; Fri, 01 Oct 2021 04:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWELm-00071C-Ax for guix-patches@gnu.org; Fri, 01 Oct 2021 04:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50563] [PATCH [0/2] gnu: GDM: Add Wayland support Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Oct 2021 08:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50563 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: "50563@debbugs.gnu.org" <50563@debbugs.gnu.org> Received: via spool by 50563-submit@debbugs.gnu.org id=B50563.163307859726943 (code B ref 50563); Fri, 01 Oct 2021 08:57:02 +0000 Received: (at 50563) by debbugs.gnu.org; 1 Oct 2021 08:56:37 +0000 Received: from localhost ([127.0.0.1]:54649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWELM-00070V-V5 for submit@debbugs.gnu.org; Fri, 01 Oct 2021 04:56:37 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:54604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWELI-00070F-Ml for 50563@debbugs.gnu.org; Fri, 01 Oct 2021 04:56:35 -0400 Date: Fri, 01 Oct 2021 08:56:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=protonmail2; t=1633078582; bh=gLJ45awGvvOscsQ1iC0zve476+NOxKE6/IiLqJGMUkw=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=eG3YR0NB/D5HT2W1r0DEXNV9j4dHW01j2p4t8U5rPIWaM4RKyy/EzRnIFYMu7UrmM U2GWfriE+wwBQgNquSpWkxhUTjEDPP0FyEsl48aTVtyoJ6W0We74VhAnj7MynaiQw0 z8dCTWYcLTinicXC+EtFVRG0E++oLgoHhl5T53/G6hRGBFafzGISHyxBpFntxFKHyq ItfI3c5fi2PwO894qoVz7B9NxbSXpNJnUoS34Fh+Lf5ttk7TR7OsqiyrPr+fPgu9sw leKidaIGu7CTJs/AYY/5/HLAGSMhTwVtYCa/+Y87Rg3gZEJ3lE2OmQnJTFS3K7x3CQ L1rUE9TB1iPNA== From: Josselin Poiret Message-ID: In-Reply-To: <875yuhqjp0.fsf_-_@gnu.org> References: <_O63PhtCI8ZiwBgDZppLf6SqqIgEm3Y0iFYKUIsuLOeAM4yMfbqumjltWSuHKl8tfgUdL0yAC2TVR4nqKvLNJ18Rgs7iImwzPAztAEvIcmM=@jpoiret.xyz> <875yuhqjp0.fsf_-_@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Josselin Poiret Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633078764; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gLJ45awGvvOscsQ1iC0zve476+NOxKE6/IiLqJGMUkw=; b=r+XcMTpPMGWNJj7UbCOc6hcdn8vx11r/EYq1kn6QrppjSnMDqMw3EVyml0kBaQ8yBdNsAQ GHaNrF7pNJj9vqJtTVkX4e8xfHftnvJ8//F00s7o7TPmGhIN7LidIQzPkpxOFDHrPryC23 /2M9B+Tg1mSsDjGeGn0z3pI28IfQfYBGANJrzO5N+ILaqi2+e4aP9ezubem5BynjfIyKKW wkgDebafrUUwOp9Ly43F8h4DsvfXYheJccVb3Y0oWWIm9qjENvYqaxmwavs0CCq/1ozm89 jYU2FiqmRxck26ca69taXMXlSHO+4jO9etJrUiJERjUzUgSErVvdz6p0IQsuVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633078764; a=rsa-sha256; cv=none; b=L66NCRx1AP7RMm2fz6YhrHv0MUpOs3AXXNnIBUGwnRyfalIVSjBNbV47NKd3n7oZVEm2IC ExtoatSANy7Jx2y/gQbaXQxKsH1TrSYOcuWe8GJiSDaIwiGiuKUsxfCcdCrQQW2ahWmnLh qEZMKwBU0g/TFfT/nEgC4rqBYy5pzW8iW3BeV9qA9VBk/ey7ZBPQL0ec16QL59l8EHPwho 9ZMWxzWvGQjX0z5PuB7xDWzSKTyvdIR1vFAMQ6CrWVRo28kyu9O8zi2+ks9NWWnAe2Irj9 oSWxNwfyMLQL+HtVd2Ru1b/TOWm5gT5ecFticcPNKW4X6DE40ikfHrCp1voFDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=protonmail2 header.b=eG3YR0NB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=protonmail2 header.b=eG3YR0NB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 1C39014F13 X-Spam-Score: 0.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1NlcljaeTV8D Hello, On Friday, October 1st, 2021 at 9:37 AM, Mathieu Othacehe wrote: > I'm not sure to get perfectly the role of this wrapper, could you > please clarify it? Simply put, when display managers (on Guix) start an X session, they are al= l configured to use a generic Guix-specific wrapper script, a `xinitrc`. This feature predates Guix of course, and is supported by all display manag= ers afaik. `xinitrc` is defined in `gnu/services/xorg.scm` and is the gener= ic Guix wrapper. Notice that most importantly, it runs the window manager inside a login she= ll, which thus inherits the right environment variables that are set by def= ault in `/etc/profile` (unless of course `/etc/profile` isn't sourced by th= e login shell, but then the user is on his own). So we would like to do the same with Wayland, however since Wayland composi= tors are just single programs that need to be launched, most display manage= rs used to simply start the compositors without doing anything else. This i= s still the behaviour of GDM, whereas for example SDDM or Slim (at least in= Guix) already support wrapping those in some scripts. Here, I just define = a generic script that launches sessions inside a login shell, akin to the d= efault `xinitrc`. The check for the `gdm` user is that the GDM graphical di= splay is launched through... GDM itself, and thus is handled like the other= Wayland sessions; but since the `gdm` user doesn't have a login shell, thi= s wouldn't work. > It looks like nix is dealing differently with the session starting, > without using a dedicated script: > https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/gnome/core/gdm= /fix-paths.patch >From my understanding of https://github.com/NixOS/nixpkgs/issues/109546, th= ey're still trying to deal with this generic issue (ie. they haven't patche= d in wrapper support in GDM). See https://github.com/NixOS/nixpkgs/issues/109542 for an example of a bug = that stems from it. Josselin