From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 23 08:10:41 2021 Received: (at 48796) by debbugs.gnu.org; 23 Sep 2021 12:10:41 +0000 Received: from localhost ([127.0.0.1]:52887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTNYn-0002Po-2J for submit@debbugs.gnu.org; Thu, 23 Sep 2021 08:10:41 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:43726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTNYl-0002Pc-Al for 48796@debbugs.gnu.org; Thu, 23 Sep 2021 08:10:39 -0400 Received: by mail-qt1-f171.google.com with SMTP id a13so5876690qtw.10 for <48796@debbugs.gnu.org>; Thu, 23 Sep 2021 05:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Dzo7Ek1sIII73cqqIw74qkffRdeg71TCOOAN3o/NESk=; b=F/rynzroKG18WRBrsErZ9US+N08xZ981Ro0bdFO3qH35egfqbGUiTrNS0Xkp4EIYi4 gLRuM2nUdcZrmcZJiBq1J4nvQ96WwIuJwsa54tEVDYHkL0nucdgs1cjxFgSpUJgjOcUH t57ig9xwna32FeOEm8M+iKZvR/W5h5AN2JivFpeKI3CzkbKNI3Y6o/QqLp6usY9k+KLR L4ji27R5i52JLDBdxAofkfc+Y0z56YeiSAh+pIFlANw9WUA1JBoKSpHpgv31YEmDLBtZ RUUVAky5vloiEFboKfs7wSUiFLUISU3DjjUGFbcQf1lUdA9HVRMu5ZtD52SWHUIiTClA 0SBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Dzo7Ek1sIII73cqqIw74qkffRdeg71TCOOAN3o/NESk=; b=Bi3Eysw+nCNrnAD3Sw1T6O9UyZSaBAQmq/gahsYEHwSd/FAhzNx6clZ/vWPtlwZJ7S 14jjQVe2o+DQGUqFsi8ZZnpiU6gm1auRJWYy1lapBvRtPcctpjHhiFOhVBkYj7ydw1Q+ oee6XT2yuEDupwSJdBx1hZa2JDwrW59k9u+h6+PkJcGHLwvW+WSijn2jNyLheR7qUZf5 rpF1ymnv0Qkby57ukxKooe2+wf6psL+EkT4xum0bxjWdIrsnR1aVoC7fRZdm31/Jjj7f Xb9D3ougo7Iy2aveya8ri1EtoXBwI2F6w8jswFL36v+hGCY8Y5A2UEpNOPsUQGSnJRR9 L10A== X-Gm-Message-State: AOAM532RNr2UV5y2Er9+MhtWh94kQYGibdG+zX31IJuvihWDPb5OrKHW TjmsXA5soH7HoV816oafFa2TmHwlabw= X-Google-Smtp-Source: ABdhPJwC0XpPbkWgttE7lvO8EVUXZoTEzFwDAP5JSrS5BloQBm6reUSvR3VrZUdEeOAHnLFLiEPPXQ== X-Received: by 2002:ac8:434d:: with SMTP id a13mr4292283qtn.91.1632399033624; Thu, 23 Sep 2021 05:10:33 -0700 (PDT) Received: from hurd (dsl-10-149-91.b2b2c.ca. [72.10.149.91]) by smtp.gmail.com with ESMTPSA id f5sm2191223qtp.44.2021.09.23.05.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 05:10:33 -0700 (PDT) From: Maxim Cournoyer To: bo0od Subject: Re: bug#48796: Guix on Debian 11 - Cant run or find applications from Guix References: Date: Thu, 23 Sep 2021 08:10:32 -0400 In-Reply-To: (bo0od@riseup.net's message of "Wed, 2 Jun 2021 18:56:33 +0000") Message-ID: <87zgs3jxvr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48796 Cc: 48796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, bo0od writes: > Hi There, > > 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. There are two things that Guix does to help users correctly configure their system so that Guix installed applications appear on PATH. 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--- # cat /etc/profile.d/guix.sh # _GUIX_PROFILE: `guix pull` profile _GUIX_PROFILE="$HOME/.config/guix/current" export PATH="$_GUIX_PROFILE/bin${PATH:+:}$PATH" # Export INFOPATH so that the updated info pages can be found # and read by both /usr/bin/info and/or $GUIX_PROFILE/bin/info # When INFOPATH is unset, add a trailing colon so that Emacs # searches 'Info-default-directory-list'. export INFOPATH="$_GUIX_PROFILE/share/info:$INFOPATH" # GUIX_PROFILE: User's default profile GUIX_PROFILE="$HOME/.guix-profile" [ -L $GUIX_PROFILE ] || return GUIX_LOCPATH="$GUIX_PROFILE/lib/locale" export GUIX_LOCPATH [ -f "$GUIX_PROFILE/etc/profile" ] && . "$GUIX_PROFILE/etc/profile" # set XDG_DATA_DIRS to include Guix installations export XDG_DATA_DIRS="$GUIX_PROFILE/share:${XDG_DATA_DIRS:-/usr/local/share/:/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. I suspect you didn't install Guix via this script? If so, could you try creating the above file, closing relogin in your graphical session and report if it fixed things for you? Perhaps we should more strongly recommend using this installation script and/or augment the manual installation procedure to cover for the above configuration. A second thing that Guix does to help users configure their environ Guix is to hinted at sourcing the profile, if the user ~/.guix-profile/bin was not already in PATH, like so: --8<---------------cut here---------------start------------->8--- # env PATH=/usr/local/bin:/bin guix install zile guix install: warning: Consider running 'guix pull' followed by 'guix package -u' to get up-to-date packages and security updates. The following package will be installed: zile 2.4.15 substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following derivation will be built: /gnu/store/015zpn0xl8fn2ff1l0vf69w127frp76a-profile.drv 0.1 MB will be downloaded zile-2.4.15 108KiB 97KiB/s 00:01 [##################] 100.0% building CA certificate bundle... building fonts directory... building directory of Info manuals... building database for manual pages... building profile with 6 packages... hint: Consider setting the necessary environment variables by running: GUIX_PROFILE="/root/.guix-profile" . "$GUIX_PROFILE/etc/profile" Alternately, see `guix package --search-paths -p "/root/.guix-profile"'. --8<---------------cut here---------------end--------------->8--- Didn't you see this on your terminal after installing the Guix applications? Thanks, Maxim