From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aF/xGQdjy2B5ewAAgWs5BA (envelope-from ) for ; Thu, 17 Jun 2021 16:58:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6KgiFQdjy2AAQwAAbx9fmQ (envelope-from ) for ; Thu, 17 Jun 2021 14:58:15 +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 A5DFA1793B for ; Thu, 17 Jun 2021 16:58:14 +0200 (CEST) Received: from localhost ([::1]:45686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lttTA-0002k6-Bk for larch@yhetil.org; Thu, 17 Jun 2021 10:58:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lttT1-0002ju-P1 for bug-guix@gnu.org; Thu, 17 Jun 2021 10:58:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lttT0-0000H7-4u for bug-guix@gnu.org; Thu, 17 Jun 2021 10:58:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lttT0-0003C5-4u for bug-guix@gnu.org; Thu, 17 Jun 2021 10:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48796: Guix on Debian 11 - Cant run or find applications from Guix Resent-From: Giovanni Biscuolo Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 17 Jun 2021 14:58:02 +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: To: Mark H Weaver , bo0od , 48796@debbugs.gnu.org Received: via spool by 48796-submit@debbugs.gnu.org id=B48796.162394183412216 (code B ref 48796); Thu, 17 Jun 2021 14:58:02 +0000 Received: (at 48796) by debbugs.gnu.org; 17 Jun 2021 14:57:14 +0000 Received: from localhost ([127.0.0.1]:55006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lttSD-0003Ax-KT for submit@debbugs.gnu.org; Thu, 17 Jun 2021 10:57:14 -0400 Received: from ns13.heimat.it ([46.4.214.66]:37152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lttSB-0003Ai-3G for 48796@debbugs.gnu.org; Thu, 17 Jun 2021 10:57:13 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 67EFF3021BB; Thu, 17 Jun 2021 14:57:04 +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 BbiY8riU5hiD; Thu, 17 Jun 2021 14:56:44 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.171.5]) (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 963333021BA; Thu, 17 Jun 2021 14:56:44 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 2ACE1FF707E; Thu, 17 Jun 2021 16:56:44 +0200 (CEST) Received: (nullmailer pid 2153 invoked by uid 1000); Thu, 17 Jun 2021 14:56:43 -0000 From: Giovanni Biscuolo In-Reply-To: <878s3ogq0m.fsf@netris.org> Organization: Xelera.eu References: <878s3ogq0m.fsf@netris.org> Date: Thu, 17 Jun 2021 16:56:42 +0200 Message-ID: <87wnqsletx.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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623941894; 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: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=Y96CRNYTkxFDlGlldP0rRFcC4vGHhoa49KVvW1RqX7I=; b=j+S62wc85Xy31mjA3WTAVM/z0pgjF2PqwJgu+VRsI/OnE8SHxqhS93M+0ud95n2Fhtx/Eu 9M/GULOTBfdpiSuKFwibwvJcU7W4B3EIWykGQyI14lh4IwuPlA5bb5JVY6AvFZaEM/x8kh oPZh3c3vOySswLGIOHSY7DM3kd31s6V1NhiQBrlpjD6jNTmzLwHrQUo9wwm2OtJTBcUNnK hCUEXTjErABfIKiMhQg+uc0wmmalqb1RtfcPbNDO4oYGZohJ5dsBG6yJA4gP76rSjmEo6T DO6TCq4nGYE4CqS4g9KSHCreewE2/ODEcY9+N6Bj15Y/g2AnULEi9dQvaaGM6Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623941894; a=rsa-sha256; cv=none; b=i8avR+MCk1pl2oTLpzEqHQsU+/JBp3wXeErqZ95sPvV6lifa9eEiV6NijaEnRjogR7w2ni E1YKcI4LSRgkXMdCWXJGI7YIprybFWl6BO8+VJwByZ3x1TdxHVAqCE3vHNAvlmmYX44Fk/ GQuxEYxv0+r9JPu/jCX8kwC8DB1Y3Rnq77ZPhBySqLWMCOjljxe5QZyzUS4IW/JvDCz8Q4 LLUVR2vvcujScwbkEKPQjPEjbuANSXDIKIMBoOCn0PhtwCBKwJGBTVwTBwdL9wbtAceqg8 hCn2VOEBGAdCm7QVSd+WR20nxomFU1omIDKSoMf+hhVvMsGwZM4e1wG16NhuxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: A5DFA1793B X-Spam-Score: -2.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: WRk0KIWPXhjw --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I use Guix on top of Debian, but I installed it long ago "manually" and not via the Debian package "guix"... anyway once installed there are no differences :-) Mark H Weaver writes: [...] >> both of the commands worked but the x package has no icon nor i can run= =20 >> it using terminal. > > The reason you can't simply type "icecat" in the terminal is because > Guix puts the 'icecat' executable in ~/.guix-profile/bin/icecat, but > that directory is not in your PATH environment variable. bo0od please ensure you have this in your ~/.bash_profile: =2D-8<---------------cut here---------------start------------->8--- GUIX_PROFILE=3D"$HOME/.config/guix/current" . "$GUIX_PROFILE/etc/profile" =2D-8<---------------cut here---------------end--------------->8--- Actually, I set all the env variables for Guix in my ~/.profile that (AFAIU) on Debian is included by default in ~/.bash_profile: My ~/.bash_profile: =2D-8<---------------cut here---------------start------------->8--- if [ -f ~/.profile ]; then . ~/.profile fi =2D-8<---------------cut here---------------end--------------->8--- My (edited) ~/.profile: =2D-8<---------------cut here---------------start------------->8--- ### Guix settings # # add Guix current path export PATH=3D"$HOME/.config/guix/current/bin${PATH:+:}$PATH" # add Guix infopath export INFOPATH=3D"$HOME/.config/guix/current/share/info:$INFOPATH" # Guix locpath export GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale" # set default Guix profile export GUIX_PROFILE=3D"$HOME/.guix-profile" # set Guix extra profiles export GUIX_EXTRA_PROFILES=3D"$HOME/.guix-extra-profiles" # set timezone data dir (zoneinfo) export TZDIR=3D${GUIX_PROFILE}/share/zoneinfo # source default Guix profile . $GUIX_PROFILE/etc/profile ### XDG_CONFIG_DIRS fixes # see Message-ID: <87r2asweu1.fsf@roquette.mug.biscuolo.net> unset XDG_CONFIG_DIRS export XDG_CONFIG_DIRS=3D"${GUIX_PROFILE}/etc/xdg:/etc/xdg" =2D-8<---------------cut here---------------end--------------->8--- Actually I don't know if all env variables are still really needed, I need to test things Also (I don't know why) in my home this two profiles are differing: =2D-8<---------------cut here---------------start------------->8--- $HOME/.config/guix/current -> /var/guix/profiles/per-user/root/current-guix $HOME/.guix-profile -> /var/guix/profiles/per-user/giovanni/guix-profile =2D-8<---------------cut here---------------end--------------->8--- so I'm using my user (giovanni) profile for my GUIX_PROFILE env variable. [...] > That's because environment variable settings are _not_ global. Each > process has its own set of environment variable settings. Typically, > newly spawned processes inherit their environment variable settings > from the parent process that launched them. This is the reason why with Guix installed programs we have to set the variables for each shell we use: 1. for the bash shell you do this by setting the variables in ~/.bash_profile (or ~/.profile like I'm doing) > In order to set your environment variables appropriately for your entire > desktop environment, you must arrange for the environment variable > settings to be loaded before the desktop session is launched. I don't > remember off-hand how to do this in Debian. I seem to recall that one > approach is to create an ~/.xsessionrc file, Yes, AFAIK Mark is right: 2. for the desktop environment (shell) I include ~/.profile in my ~/.xsessionrc (because I like to keep all variables in one place) My ~/.xsessionrc: =2D-8<---------------cut here---------------start------------->8--- if [ -f ~/.profile ]; then . ~/.profile fi =2D-8<---------------cut here---------------end--------------->8--- This way all your xsessions (all X sessions should read ~/.xsessionrc) will have the right environment (from your default Guix profile) and you will be able to start Guix installed programs there (i.e. I use i3 for this and it works well) For the record, application and icons are sourced by XDG compliant desktop environment from the XDG_DATA_DIRS env variable, that variable should be in your default user profile, in $HOME/.guix-profile/etc/profile, that you should source both in ~/.bash_profile and ~/.xsessionrc as explained above > which should be an executable Bash script AFAIU it can be a regular file [...] > I'm surprised this isn't well-trodden territory, long ago documented in > our manual, but I guess it isn't. It would be good if some Debian > expert(s), or at least someone who runs Guix on top of Debian, would > step forward to fill in the details. I'll try do propose some patch for the Guix manual but... don't hold your breath, I need some testing. Happy hacking! Gio' [...] =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmDLYqsMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSuoUP/j+mdBATqh6kKiamwJh1Lts4c4IZx1IYER0xOiNB AsS9DmjGxI7euIZyakc1QdJal0oe/eMe43HR6tqYcaFlFOCVZuiXbyf5UDnDI/p8 8V+dPwhmhC1UbGYECNcPXuGWN1SNqcWUsAoA8780UmaeA9l7CNBFnnViw6BhVWfO jNv88wRs5fmpN3obE9SaA8yMhYVNMJitAwrlR2+hQClSGTK4CdRqPT+HflL1CEO/ 3m0EqBjEyePKEbvSaeBpB1z2794gg3+73y3E7U9CYGw0pBKEaDUBnSbpbeAGAvnw nRDqho+h3/Z5j9GOQlhNSCsIKbAFlXGra5VJpG9IK5ZEJ6vdyfkLTYoJoNKigIoi XCd8qX/iWuDBYR4iUHl228TubQMyWYk7GpwJtUwAfseorGS9cexzI+VnyZ8MF737 19rp1e3MzCEysyZlI58eEk0u4z4FXjPA/ykQgr0FhvaRKj2qIS7Xo4M1V0D8kExh UHSsa8x1bqpiLj59AMsmWBxFK4aOIrhugCln0bUfhIjg07ab4cwy4Xg7RoNaVuhA yjpuHd1NYhqdvGVPl+k17W2e9SlQMg/VKdYz8vCIW+y88X41vQys8RTw7aJN035Z g62/SCNP+GFSC95yUWw9vpr9CWjnnnwpJBysFbSlFB1S6uqAqAYAFo9v6hVhOgce J0H7 =sbMJ -----END PGP SIGNATURE----- --=-=-=--