From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0MQpKJa4hmJsfwEAbAwnHQ (envelope-from ) for ; Thu, 19 May 2022 23:37:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WKbeJ5a4hmIucwAAauVa8A (envelope-from ) for ; Thu, 19 May 2022 23:37:26 +0200 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 BC158BB71 for ; Thu, 19 May 2022 23:37:25 +0200 (CEST) Received: from localhost ([::1]:51550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrnpk-0006Wt-Uk for larch@yhetil.org; Thu, 19 May 2022 17:37:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrnpV-0006St-Pb for help-guix@gnu.org; Thu, 19 May 2022 17:37:09 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrnpT-0000R1-Eu for help-guix@gnu.org; Thu, 19 May 2022 17:37:09 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C70265C0156 for ; Thu, 19 May 2022 17:37:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 19 May 2022 17:37:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1652996224; x=1653082624; bh=NSGc9TGpWHg2lPXdRPDQe0iYA 44Oc467etfhC859dqM=; b=KD7LpJ7YnB40FLpz7Tjs/Aum884lORt3tdpwjIQKQ JL0aVF1zU4FGlLMZ6mbhe+08njvbUOYcX4exo+yOg9SATD6vWtHzYuDIbQ9hTZy0 Lxe5Rk8ZxxFKnfX45GqCQejmJrjWRmTzk/D5ATgmoQtu1s7WUcTu5SablDEdJQMp ub1lwzP9HDf/OQ2faCWopHwXnrbItLqJbdSmHuQAnQ0ZatBDw/2OhumYlLjJhdp/ WRRvhuU/TTuuKaCIVzNqS0fQ+CeHb5Rts+H8mTkuv35+LXH9s+/R1pAWyAFy7faZ 1Aua26O+diEgPtTnnP/kZzCjPrhUMTXNF6bqHO21g9saw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1652996224; x=1653082624; bh=N SGc9TGpWHg2lPXdRPDQe0iYA44Oc467etfhC859dqM=; b=nHz/ZkfOSqhIvLxk7 0zzEEUcEvWfE3zipPX6y3wFuKxF1bTPalWvNJY5y6MwKGX0VJB7EbWcj+4J3EX/n xsRoXY6YZsrm7KCqGBWnkDDbZUGoq6veHoLxUSp9zysKlpuMKTRsYNyeDDnSgsle xGNacwhArDtoTewdxBpWfSqY9j8dT3b4w2iHitNSpWRv07zO0VSNX07Lx8ANA289 kw/aBx8hKXO+O6vWzOidRedcBpYXvAwI5FWSWmyguud/GlOFhmRDKPdglQdrMghB i2UW8GuGs16QR6WNuH5p3STNV9ImJONW4H39PxWQmvw1i4xdX6+eRlaCmNSPo4f7 ODzUQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedriedvgddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffhvfhfjggtgfesthejre dttdefjeenucfhrhhomheprfhhihhlihhpucfotgfirhgrthhhuceophhhihhlihhpsehp hhhilhhiphhmtghgrhgrthhhrdgtohhmqeenucggtffrrghtthgvrhhnpeelkeffgeffvd efheeivdffiedvheevkedtleethffftefgudeuhfetfeefueekgfenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehphhhilhhiphesphhhihhlih hpmhgtghhrrghthhdrtghomh X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 19 May 2022 17:37:04 -0400 (EDT) Message-ID: Date: Thu, 19 May 2022 17:37:03 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: Broken KDE initialization with `guix home` Content-Language: en-US From: Philip McGrath To: help-guix@gnu.org References: <082e0711-88e5-570d-ec41-e5afee6459a1@philipmcgrath.com> In-Reply-To: <082e0711-88e5-570d-ec41-e5afee6459a1@philipmcgrath.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=66.111.4.26; envelope-from=philip@philipmcgrath.com; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652996246; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=NSGc9TGpWHg2lPXdRPDQe0iYA44Oc467etfhC859dqM=; b=qQNgPh8b7bovnSu5HaJF1T9R7h9ycdSl7p9c87mpnIg/Q5jiAwhFnabZN4D0idmZ5EFYVF syRr8mcch1MfBSm/YpdkoJMRjX3diD7fAc098F5vIKuozGWUx/1pIdy27XXEU00iLBxTm3 gsnucsHuGY3O5QnZdLg576pLB/0n89Tpbkk0K0pCoavhQUAkys6El+lBPEJO+O76+1/iW5 ML6Aa+aRdODOjg2dKPM6nGZPf936OUHhnrPOP0tFgZ6UayxqaLA/s0hWfoJR5JzYdIH6WX wH+AgPrCkUyro1/dZl51c3LWJCn4Uk71DtLUe9M8qK8UtaRllonXiNG4VJzTEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652996246; a=rsa-sha256; cv=none; b=Nf/S513d4+76b9n21uYrqFTXhbd7zFy+yNWcgWBaJfTuVGbL6PNyrWF8EXvj8N8+L6i8A5 gpZGjfkS3b+DuuIqF/et12tX3rKLXlOJR+1TuYGjfGIUrcYF/+WAOTDVL9z2LOtWcB8dj3 tv84aOyKNHlJJ9FEePDV5ZSH9tX5YbmuwWnXK5Ho/M2i9MszBThwVOErQCF0OsbTUNaT3e lTyyf3HDXPMm652EiQaFv29ua8+ssnf6ttUyXVkeTEKEcpyCVMsMCJRdoXPtkgQJZQq1Nr +HsoDkdpoI9sfkICnE7pk2Ubg5D+tR5uQrwQEW1H1MKmMYCizowO8s8WU0+HrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b=KD7LpJ7Y; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="nHz/ZkfO"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.56 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b=KD7LpJ7Y; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="nHz/ZkfO"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BC158BB71 X-Spam-Score: 2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: fjmu1JBtTdL7 Hi, On 5/13/22 13:41, Philip McGrath wrote: > Hi, > > I'm trying to start using `guix home` on a fairly fresh install of > Kubuntu 22.04 with SDDM and the KDE Plasma Wayland session. I'm running > in to some problems when the session starts up: I suspect some > environment variables may not be getting set when they need to be, but > the symptoms are confusing: does anyone know what might be going on? > > When I log in from SDDM (again, to a Wayland session, not X11), I see a > splash screen with a spinner for a while, then the screen goes black. > I've found at this point I can use the Alt-Space shortcut to access > KRunner, which lets me run `plasmashell --replace` (and evidently finds > "/usr/bin/plasmashell"). > > That gets a desktop to appear, but there are more problems. The > "Application Launcher" menu doesn't show any desktop entries: there are > "Favorites" and "All Applications" submenus (no others), but they are > empty. [...] > I've found at least a workaround, maybe even a solution, though some of this might constitute a bug in Guix Home. Looking into the symptoms, I found the `kbuildsycoca5` command to rebuild KDE's cache of .desktop files. It initially reported the error: kf5-applications.menu not found in () That file existed in /etc/xdg/menus/, but I discovered that XDG_CONFIG_DIRS was set to: /home/philip/.config/kdedefaults:/home/philip/.guix-home/profile/etc/xdg: i.e. ending with ":" rather than ":/etc/xdg". Creating a file /etc/profile.d/99-guix-home-hack.sh with the content: export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS:-/etc/xdg}" and rebooting was enough to get Plasma Shell to start normally, though I still had to run `kbuildsycoca5` manually to get the launcher menu entries and panel items to work. I think it might be better to change this code from 'environment-variables->setup-environment-script' in '(gnu home services)': > case $XDG_CONFIG_DIRS in > *$HOME_ENVIRONMENT/profile/etc/xdg*) ;; > *) export XDG_CONFIG_DIRS=$HOME_ENVIRONMENT/profile/etc/xdg:$XDG_CONFIG_DIRS ;; > esac To likewise use `${XDG_CONFIG_DIRS:-/etc/xdg}`. I'm not any kind of expert on the XDG specs, but I read e.g. "If $XDG_CONFIG_DIRS is either not set or empty, a value equal to /etc/xdg should be used." to apply only to the whole variable being "", not to an empty element in the colon-separated list. At least, if KDE behaves this way, I imagine others do, too. In the same place, the handling of MANPATH and INFOPATH seem fine, because they have specified behavior for a trailing ":". On the other hand, XDG_DATA_DIRS seems like it would have the same problem if it weren't for the fact that, for me, other scripts in /etc/profile.d/ have already added items and included the default tail. I similarly suspect the handling of XCURSOR_PATH might be related to an odd issue where the cursor disappears when hovering over the border of a window (even though this is Wayland), but I need to investigate that further. On I somewhat-related note, I had previously relied on GUIX_LOCPATH being set by /etc/profile.d/guix.sh, but now, because $HOME/.guix-profile doesn't exist, it isn't set there. I've set it in my home configuration, but it seems like it would be better to provide analogous automatic support. -Philip