From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WHFQE3q6amIixgAAbAwnHQ (envelope-from ) for ; Thu, 28 Apr 2022 18:02:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CLpNE3q6amLmpAAA9RJhRA (envelope-from ) for ; Thu, 28 Apr 2022 18:02:02 +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 B1BAE2D861 for ; Thu, 28 Apr 2022 18:02:01 +0200 (CEST) Received: from localhost ([::1]:55274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk6ac-0008Gt-No for larch@yhetil.org; Thu, 28 Apr 2022 12:01:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk6Ym-00082z-Cd for bug-guix@gnu.org; Thu, 28 Apr 2022 12:00:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk6Ym-000477-1f for bug-guix@gnu.org; Thu, 28 Apr 2022 12:00:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nk6Ym-0005kM-0R for bug-guix@gnu.org; Thu, 28 Apr 2022 12:00:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48796: Guix on Debian 11 - Cant run or find applications from Guix in Desktop Menus Resent-From: Giovanni Biscuolo Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 28 Apr 2022 16:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48796 X-GNU-PR-Package: guix X-GNU-PR-Keywords: moreinfo To: Maxim Cournoyer , bo0od Received: via spool by 48796-submit@debbugs.gnu.org id=B48796.165116158822018 (code B ref 48796); Thu, 28 Apr 2022 16:00:03 +0000 Received: (at 48796) by debbugs.gnu.org; 28 Apr 2022 15:59:48 +0000 Received: from localhost ([127.0.0.1]:49692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk6YW-0005j4-9R for submit@debbugs.gnu.org; Thu, 28 Apr 2022 11:59:48 -0400 Received: from ns13.heimat.it ([46.4.214.66]:60940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk6YU-0005in-QJ for 48796@debbugs.gnu.org; Thu, 28 Apr 2022 11:59:47 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 544B430219B; Thu, 28 Apr 2022 15:59:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HU3lJFNJeH5p; Thu, 28 Apr 2022 15:59:37 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.171.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 61BEA300FB0; Thu, 28 Apr 2022 15:59:37 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 7314A1A28D36; Thu, 28 Apr 2022 17:59:36 +0200 (CEST) Received: (nullmailer pid 8166 invoked by uid 1000); Thu, 28 Apr 2022 15:59:36 -0000 From: Giovanni Biscuolo In-Reply-To: <87zgs3jxvr.fsf@gmail.com> Organization: Xelera.eu References: <87zgs3jxvr.fsf@gmail.com> Date: Thu, 28 Apr 2022 17:59:35 +0200 Message-ID: <87pml1gpw8.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 48796@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-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=1651161721; 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: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; bh=I8M9fMrYRVgtFhHZDrdSCPPQLiu2ojIfP6s10wctRBY=; b=SogjpCHh6xvbYAEjwiAOiSQam5Ooef9DRqZS2kBss+uRdU/qmifByBRbMuV9RmjbJ9u+uk yk8c1rEVOk9n0SUWPGo/7Faz0ebmLsrbU6JhzmUA0hOIV1nQwCAz1HmUBzYGZYoHusbhcJ GtdWYCkiPET6KCsXPD5f7MI8CvCult8vEk6fU9rWG/ejVS9Cr6vnrW0N587BEyNXxrtx7w XXuBrMA7x5H4uyqU61aWs0WGMQSR9C8ncqHW9pyZb5Q4eYdeeH/+eH2H0K7SCHoqBSg9Mn xAJtNbnzoveGRGoR+M/9UKUVffWKFMZa0UZJC259IbsIegdcBotpugQKp9iQ5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651161721; a=rsa-sha256; cv=none; b=bnMVMNA3Y8Rw+5VjAV1hGL3uzIXo2eSmBRDIbOoy24JMWvnl3qVfUdKpor1O83Q7K3oNQ1 SkXU+3poz1tQ4LHybnMpEEWwgxmbsdBs9nwsyVAqBoqZzPepvI0jJ7vdzO8+ixcAddmaYJ Tf7u/wiX8JmNDY6tjyHoKl44epfmEtOHrlOBu82CFHY+4wGlS/hIzLVadR/PT/+puKC52n Cwqzbfd5oN6oHmP/EY4ghFB/FQHVwEPNQojlAC0BeBM+mhx4vG9uQIaVRUJCzTqHE1JEHl 58gRrrcsaV+tog6wpEH7GH74qxwhZlhYWY/3+m/0sCFK8B2ClKM88u4P9GDn4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.60 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B1BAE2D861 X-Spam-Score: -4.60 X-Migadu-Scanner: scn1.migadu.com X-TUID: G38Fd3kSg86N --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Maxim and bo0od, This is my report about my recent testing experience with guix installed desktop applications in a desktop environment on Debian 11 (I usually do not use a desktop environment with a graphical menu, I use i3). I've added "in Desktop Menus" to the subject because actually users can find and run applications using a terminal (dash shell in Debian) or the "Execute" menu option found in many Desktop Environments (this means $PATH configuration is fine). The user experience is this: 0. user install the guix package manager via apt 1. user logs in via display manager (I tested LXDM and GDM3, installed via apt) 2. user gets a desktop manager (I tested LXDE and Mate, installad via apt) with a graphical menu 3. user installs a desktop application via "guix package..." 4. user does /not/ see the newly installed application, but the person can start the program via terminal or "Execute" menu item (with completion, this means $PATH does include the ~/.guix-profile/) Maxim Cournoyer writes: [...] > There are two things that Guix does to help users correctly configure > their system so that Guix installed applications appear on PATH. Yes: PATH configuration works, it's not the problem causing this bug report. > 1. The guix-install.sh installation script installs a > /etc/profile.d/guix.sh script that configures the PATH when logging in: > > --8<---------------cut here---------------start------------->8--- [...] > # set XDG_DATA_DIRS to include Guix installations > export XDG_DATA_DIRS=3D"$GUIX_PROFILE/share:${XDG_DATA_DIRS:-/usr/local/s= hare/:/usr/share/}" > --8<---------------cut here---------------end--------------->8--- > > It even set XDG_DATA_DIRS, which should allow integration with the GNOME > Shell and other graphical dashboards. No: this does not work, for three reasons: 1. AFAIU "/etc/profile.d/guix.sh" or "~/.profile" are not sourced/executed in a graphical session (graphical shell?), we need to ~/.xsessionrc to configure that environment: am I wrong? 2. XDG_DATA_DIRS gets someway hard reset by "something" to this value: XDG_DATA_DIRS=3D/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xd= g:/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/ (I found workaround, see below) 3. desktop menus (I tested LXDE and Mate, not Gnone Shell) are not updated This is my workaround, in ~/.profile I have: =2D-8<---------------cut here---------------start------------->8--- ### Guix settings # # add Guix current path export PATH=3D"$HOME/.config/guix/current/bin${PATH:+:}$PATH" # Locale path export GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale" # add Guix infopath export INFOPATH=3D"$HOME/.config/guix/current/share/info:$INFOPATH" # set default Guix profile export GUIX_PROFILE=3D"$HOME/.guix-profile" # source default Guix profile . $GUIX_PROFILE/etc/profile # Needed to find Guix XDG data, included *.desktop files # when not set, XDG_DATA_HOME is $HOME/.local/share # only ONE directory is permitted, setting two does not work (?) export XDG_DATA_HOME=3D"$GUIX_PROFILE/share" =2D-8<---------------cut here---------------end--------------->8--- and in ~/.xsessionrc: =2D-8<---------------cut here---------------start------------->8--- if [ -f ~/.profile ]; then . ~/.profile fi =20 =2D-8<---------------cut here---------------end--------------->8--- The main point of this workaround is that I configure XDG_DATA_HOME, described in the specifications: =2D-8<---------------cut here---------------start------------->8--- $XDG_DATA_HOME defines the base directory relative to which user-specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used. =2D-8<---------------cut here---------------end--------------->8--- (from https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.htm= l) With the above workaround I'm able to see all guix installed *.desktop files in the menu of my desktop environment (tested on LXDE mainly). Anyway to make the new installed *.desktop files appear in the menu, I have to logout and login again: I've still not found a command (or configuration) to update the menu, "xdg-desktop-menu forceupdate" does not work. [...] If my experience is consistent with those of other users, I'm willing to propose a patch for the manual (I'm thinking of a specific "2.6.6 - XSession setup" in (guix)Getting Started) WDYT? Thanks! Gio' =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmJquecMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSnJ0P/ArAYcnieZ+sS9Qun+39VQJ3mj2CB3o0vhigbBzY N2mUaVvZEaT0SlZu3ZpTUY0TL1Sz2KplbbhAq2Tj0q0WONFv4Ez++42rMVQhaw45 03cWU/4a6z7RRzP7GkiAeSRjTZP89Tn1bX3eFD304GGi9F4M5NIJFrgUIvVz5dzE OyfTQrMVEr0hdtGVe6UsZOJE/G9cXumHAvcK+w7ZOdtoV0VRegK+2zUIa4yQni82 ZLcsKNQuB/34FKTePF/LGInDjhrwkQ+7aEKUuOoFGFQx0B0lcqQcTyzJ3rAuHXE5 wq5iCIG6/1CmFnG5oOrVBlrBBFU5U2h4RYAE4QA2C5MJ+vY5RiFNYlTgKvTok7rP sc4hPi6Z/mBjbcvHtkuyJnpjV0SbJ2J3WWv8i9R9gvcS4t45YdpSz7ibIO1UEdyQ tb4zw8VC2oUAb0bCUqVb3+2Vw2c1jc/R+PfgGECHeIapgD3upH4kK5Al+Hc5uhsq a/jmRnxXv6J+Nw5GeFXVUsDw8hT+7SwBqP9kcLVYLudwrwRQ6p4jd7yTTZ4JaYG4 xbFgU/VQkJyHBlI57imaYy9rITPyWqJ3gcUOa0bxLGdHuAkzvCn0Ws8z2nywxUxI o2vq82lI8LUeVC/tvmMAo0etw4tN8yQBNlAa1C2fZI1kVUJAa3YXPKEzpqWAwTTr DqeD =sGhP -----END PGP SIGNATURE----- --=-=-=--