From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MNR2Audiw2a6nwAAe85BDQ:P1 (envelope-from ) for ; Mon, 19 Aug 2024 15:21:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MNR2Audiw2a6nwAAe85BDQ (envelope-from ) for ; Mon, 19 Aug 2024 17:21:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=xelera.eu header.s=dkim header.b=e4OqgAi9; dmarc=pass (policy=reject) header.from=xelera.eu; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724080871; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2+LoRlmwZfBbcjgFD9SWIYBK9q2/1FSHYkq/6BUlf5g=; b=PBcavhIpRdJgONN6EcWyBuey8RJSRZRYs0Ch9nv9DvPy/toKDfnusUu+2WpjeFpufqqpIW 8nQbigOyiz0m7/ngtHwQJwrfPfXS3I3fbBdMbWAwRGT5zChAYDbfSDzxolZGeQ5NaO8TyZ Y/Wk8AM9XGdZSD/lFcMzUOB81VPBHQcKSEbHBJgs3LroC1fT4y3HaOG9m9RAK0Ux6ZegRh CAE844+lB8+2fPhkpA2U5TZYKo3suynkuqG0i1UbrFvEtKGZjTjVyywr2WtX6XuJmRpTaM xsBnqTWhWsRI56vVVUQNHFuxcS2ngFOeBLgcqbuOg9/o4X9mwnLxnCgN4StVTw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724080871; a=rsa-sha256; cv=none; b=m1k9SnCpSvlsTIXsv6IgQUoKGW0jaAA+Wl/nJ14gbiIeADhTDlrpYl31Vz8/hU44Ni0NtU 5tSiDkEXUScJymMXcju06zaD4d4IcE6gApgBXsh4OehZaEh5O1ykRhjgAjSXiU13TA7iXa t5PnoUyGn3EK8qCaK4bJt3ZFiFkWWVV0P/a+dLTaWTvmmKjGv5tqI+WLtsprBeNiwV1viZ BWfXDSzTeSp7jNrZUPJPSP6uTo+j2iZBUwJYajdRY7iOKw97EYzYRxUMO1ob1ZIOHhQgp8 zEncxs3E3RylaAeqhC/iZA8e494P3Dqrfwu+OrmEjDr2AKz8k3lax1PzDMc4iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=xelera.eu header.s=dkim header.b=e4OqgAi9; dmarc=pass (policy=reject) header.from=xelera.eu; 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" 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 EDDCDE583 for ; Mon, 19 Aug 2024 17:21:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sg4BP-0001gX-MQ; Mon, 19 Aug 2024 11:20:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sg4BN-0001g7-10 for help-guix@gnu.org; Mon, 19 Aug 2024 11:20:33 -0400 Received: from mx1.meup.it ([162.55.88.253]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sg4BK-0000rT-TD for help-guix@gnu.org; Mon, 19 Aug 2024 11:20:32 -0400 Received: from bourrache.mug.xelera.it (unknown [93.56.171.185]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.meup.it (Postfix) with ESMTPSA id 3576280149; Mon, 19 Aug 2024 17:20:27 +0200 (CEST) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 9420536650BA; Mon, 19 Aug 2024 17:20:26 +0200 (CEST) Received: (nullmailer pid 1296008 invoked by uid 1000); Mon, 19 Aug 2024 15:20:26 -0000 From: Giovanni Biscuolo To: debian-user@lists.debian.org Cc: help-guix@gnu.org Subject: LXDE startlxde is resetting XDG_DATA_DIRS on Debian 12! (was Re: customize Debian 11 evironment in lightdm...) In-Reply-To: <877d70c4cu.fsf@xelera.eu> Organization: Xelera.eu References: <877d70c4cu.fsf@xelera.eu> Date: Mon, 19 Aug 2024 17:20:25 +0200 Message-ID: <87msl8k092.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xelera.eu; s=dkim; t=1724080827; bh=2+LoRlmwZfBbcjgFD9SWIYBK9q2/1FSHYkq/6BUlf5g=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=e4OqgAi90uh6jTh15+ldJLvwXbSQHpIyTtGblGGIIwpDcbSw6Eg1PPmVN3bNekZ8ICQBXjFqH2nsJSZylLMjNvcSkc7K9ns0gF8LQ2KjmDZ7vEmButw6XHxkvDDqnJjiTM7E3Z0o4YPWuithQ5KHUB0mojJIqZOR2WUmWVJQvJU= Received-SPF: pass client-ip=162.55.88.253; envelope-from=g@xelera.eu; helo=mx1.meup.it X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.77 X-Spam-Score: -6.77 X-Migadu-Queue-Id: EDDCDE583 X-Migadu-Scanner: mx11.migadu.com X-TUID: JZAsFCPrBXdR --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I'm following up a very old thread on debian-user (May 2022) since I finally understand what is _resetting_ my XDG_DATA_DIRS... oh my!!! To help-guix:=20 Giovanni Biscuolo writes: > I'm trying to customize my user environment when using the lightdm > display manager (then the LXDE desktop environment) after the first tests, I also used gdm3 with the very same results > I need to customize some variables so I can see Guix installed > applications in my desktop menu, in particular I need to customize > XDG_DATA_DIRS ...but "something" in LXDE (and only in LXDE) was _resetting_ my XDG_DATA_DIRS customization [...] Since then, I upgraded to Debian 12 (bookworm) and the issue is still here. Since then, I changed the way I'm customizing user's environment in order to allow users to use Guix installed programs (via PATH customization) and see them in the "Application menu" of their preferred desktop environment (via XDG_DATA_DIRS customization). The fact is that my environment setup - that now is the same provided my the Guix binary install script [1] coupled with a per-user .xsessionrc sourcing the relevant environment variables scripts [2] - IS WORKING with all desktop environments I tested... except LXDE. OK, so after this short recap to provide some context, this is the head of the /usr/bin/startlxde script that starts an lxsession [3]: =2D-8<---------------cut here---------------start------------->8--- #!/bin/sh export XDG_DATA_DIRS=3D"/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/= lib/menu-xdg/" if [ -z "$XDG_CONFIG_HOME" ]; then export XDG_CONFIG_HOME=3D"$HOME/.config" fi if [ -z "$XDG_DATA_HOME" ]; then export XDG_DATA_HOME=3D"$HOME/.local/share" fi =2D-8<---------------cut here---------------end--------------->8--- That is literally _resetting_ all previous XDG_DATA_DIRS variable content... why?!?!? AFAIU this should be a bug in /usr/bin/startlxde. Actually a Debian bug for this issue in package openbox-lxde-session (that provides /usr/bin/startlxde) has been already filed on 2018-08-16, so I'm not going to duplicate it: =C2=ABopenbox-lxde-session: /usr/bin/startlxde overrides XDG_DATA_DIRS maki= ng all local .desktop files unable to show on menu=C2=BB https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D906288 That's it! :-( Happy hacking! Gio' [1] https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh [2] this way: if [ -d /etc/profile.d ]; then for i in /etc/profile.d/*.sh; do if [ -r $i ]; then . $i fi done unset i fi [3] as found in /usr/share/xsessions/LXDE.desktop defining how to start LXDE desktop session (Exec=3D/usr/bin/startlxde). =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmbDYrkMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSb1YQAJkKtOXelnhh91+5V4WGN3xDxVqRPWb4yyx7K2pp 08dbyXcH24njz2+Dx62q+9QhNmb9Yc8lEH1oRSC+P2dFyC1OVTbXdDoHv+NACFUU Rz48HMam1l1eaFK0GldSn1xOnIhB/DofVQMVHYscrRO+YzmOjRMAtuS563NGvHaR Ci1Ur6Gu+sWIJP0VZk1XPbrdEkOEU/7fu4WDdyXRr5p4pzDXzWUsYHonTXv5AU1o OomZZy2tpZ6xZTaz/FxI1wR1tAnSorrvtKzvCzab/IMHaEfdkBiF3Uuwajnh/Are qpgeQhFa5uc/oaHrsYYM2hISJndObV8tA7up2ihqFm07aUPqWLOR6QcggwvV//aN VlHKSZiHTccQlGXnWg9p6YeP364Q0LHex6TAKvAsrH+sOtrF8fMsC928w5U0R9Sg PW0agJbHImj/tV8gGRRIeNrRobfM8vRQHlwj+2XPyBZ0I6RJynx1Z/BEHrWR+jZJ jpRr1neKRUt0+aJhyLQSYBKyYk9fjtry4k+PKwzKBInvV7asuqRqyYJZgX9cpqxh jpSnr93utVudLZBHJh0MlP9lyT1vjqmAvyAv7ToLYIhPUb1izZ3DLAcnKR1mxUUg JP0CuDOAhf/SmhkY/f+Q7ND/Hz+8GsRECVk3G03K3h19CYtcTM77qnntytieTxSE yKQM =4JZo -----END PGP SIGNATURE----- --=-=-=--