From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gNUjMS+8u2DiFgAAgWs5BA (envelope-from ) for ; Sat, 05 Jun 2021 20:02:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2MRyLC+8u2ASGgAA1q6Kng (envelope-from ) for ; Sat, 05 Jun 2021 18:02:23 +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 3ABA620B4F for ; Sat, 5 Jun 2021 20:02:23 +0200 (CEST) Received: from localhost ([::1]:41480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpaco-0007ty-AP for larch@yhetil.org; Sat, 05 Jun 2021 14:02:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpaRq-0001S3-MJ for bug-guix@gnu.org; Sat, 05 Jun 2021 13:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpaRq-0007r9-Eh for bug-guix@gnu.org; Sat, 05 Jun 2021 13:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lpaRq-00024C-AH for bug-guix@gnu.org; Sat, 05 Jun 2021 13:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48796: Guix on Debian 11 - Cant run or find applications from Guix Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 05 Jun 2021 17:51: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: bo0od , 48796@debbugs.gnu.org Received: via spool by 48796-submit@debbugs.gnu.org id=B48796.16229154447917 (code B ref 48796); Sat, 05 Jun 2021 17:51:02 +0000 Received: (at 48796) by debbugs.gnu.org; 5 Jun 2021 17:50:44 +0000 Received: from localhost ([127.0.0.1]:50023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpaRY-00023d-3h for submit@debbugs.gnu.org; Sat, 05 Jun 2021 13:50:44 -0400 Received: from world.peace.net ([64.112.178.59]:41604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpaRU-00023O-Dh for 48796@debbugs.gnu.org; Sat, 05 Jun 2021 13:50:42 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lpaRM-0008Jo-Mf; Sat, 05 Jun 2021 13:50:32 -0400 From: Mark H Weaver In-Reply-To: References: Date: Sat, 05 Jun 2021 13:49:34 -0400 Message-ID: <878s3ogq0m.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain 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=1622916143; 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=r50M+jLEhBfZwtJQUQMtWClsrYKMeQkfubLK3oVeqmU=; b=VqdO8pc6pmHpQIpB2egUDBSxn1RHeBKzKdoEY76LvmHGkVTzY8evFO2tCMtcLnt8+6atTO bZgx0Q6To97LZNXzaQmryVLQX8DBih30g38E9HuMXCLmILNasphlj/onM+noXwETFMiWGu Ql0Rvr0yqUgZNGAiTajDcREnLnwGQ5s984cctzMWRm7kLI0QHgAM3aNghADZS61gSkayDE wUKTcjWShhxbpmaxRFoOaWdaFqob+mM/Q3UuvNvC38b3AmSvYmQ0Wx+a3FCiMLamJ6hiEJ udaVRpu3E+j9h8vr84Vv4OytCSb9bfC8skuTSYrL0J3/qzoBxx49GI9QHE9e+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622916143; a=rsa-sha256; cv=none; b=LXE3OnzXdfR8/U11nrj6CeCUWlHBjmvL4e86jYXFA0vQbPeARuyJzKkXhirK8sn+XO+Z/k rHhlRb5cGBKQo4rzUlJHmaBKfQg2daKGmmPQB8xlnDy6kq2EDM3sJy72fxYGc82+gXxSaX OuJGWIiQ6I23bfdMV4RGDIAYpxT26vEKaY3h5yzUwiqbEMIlOCdSMIHCc2sJS3W0xmb9V6 x2WtKh9IC9r7MOs+6975CwYwV6yx+k9Sqx7j4ZQjIhfPL8XxGJFhTIArGHApEiteQr0E6B wk3plY5ci5+N5ONiPXUQ9Y1KENs2bVEHzw/FeFhItXYd90z3ZyMDBcnARTa53w== 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.43 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: 3ABA620B4F X-Spam-Score: -2.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: WCNHL1oYecjK Hi, bo0od writes: > I have installed Guix package manager over debian bullseye 11 then i > installed a package using guix (after running guix pull) with two ways: > (x package i tried is icecat) > > guix install x > > sudo -i guix install x > > both of the commands worked but the x package has no icon nor i can run > 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. Likewise, the reason there's no icon, i.e. no entry for IceCat in the list of applications known by desktop environments in Debian, is because by default desktop environments look in /usr/share/applications for the ".desktop" files, but Guix puts the desktop files in ~/.guix-profile/share/applications. On a standalone Guix system, these issues are addressed by making sure your environment variables are set as needed to make these things work. ~/.guix-profile/etc/profile should contain Bash shell commands that set the environment variables appropriately for the set of packages currently installed. If you type "source ~/.guix-profile/etc/profile" from a Bash shell, it loads the needed environment variable settings into that shell instance, and henceforth you should be able to run "icecat" by simply typing its name, *but* _only_ in that shell or other processes later spawned from that shell. 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. 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, which should be an executable Bash script that loads the needed environment variable settings and then launches the desktop environment. Maybe there's a better way. 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. Thanks for raising this issue. Regards, Mark -- Disinformation flourishes because many people care deeply about injustice but very few check the facts. Ask me about .