From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luther Thompson Subject: Re: Guix and $XDG_DATA_DIRS Date: Thu, 11 Apr 2019 13:58:56 -0400 Message-ID: <20190411135856.0c6eeb26@gmail.com> References: <4716913.Tid4HlZl5B@aleksandar-ixtreme-m5740> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:60823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEdye-0004E4-Tv for help-guix@gnu.org; Thu, 11 Apr 2019 13:59:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEdyd-0002Kj-Pg for help-guix@gnu.org; Thu, 11 Apr 2019 13:59:08 -0400 Received: from mail-yw1-xc2e.google.com ([2607:f8b0:4864:20::c2e]:41649) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hEdyd-0002K5-Ai for help-guix@gnu.org; Thu, 11 Apr 2019 13:59:07 -0400 Received: by mail-yw1-xc2e.google.com with SMTP id l15so2381652ywe.8 for ; Thu, 11 Apr 2019 10:59:06 -0700 (PDT) In-Reply-To: <4716913.Tid4HlZl5B@aleksandar-ixtreme-m5740> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: HiPhish Cc: help-guix@gnu.org On Thu, 11 Apr 2019 19:06:03 +0200 HiPhish wrote: > From what I understand, Guix should set all the necessary environment > variables by modifying the file $GUIX_PROFILE/etc/profile, which I > then need to source in my .profile file. Here are its contents: > > export > PATH="${GUIX_PROFILE:-/gnu/store/83b17pr7rdyng48443iqn0f1z18dkpzk- > profile}/bin${PATH:+:}$PATH" export > GUILE_LOAD_PATH="${GUIX_PROFILE:-/gnu/store/ > 83b17pr7rdyng48443iqn0f1z18dkpzk-profile}/share/guile/site/2.2$ > {GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH" export > GUILE_LOAD_COMPILED_PATH="${GUIX_PROFILE:-/gnu/store/ > 83b17pr7rdyng48443iqn0f1z18dkpzk-profile}/lib/guile/2.2/site-ccache$ > {GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH" > > As you can see, $XDG_DATA_DIRS is not being modified. I have added > the following line to my .profile file: > > export XDG_DATA_DIRS="$GUIX_PROFILE/share/":$XDG_DATA_DIRS > > Now all the applications do show up in my menu after a reboot. Is > this an oversight or am I supposed to set that variable myself? And > if it is the latter, where is the best place to set that variable so > it picks it up when I install a new application without rebooting? On my system ~/.guix-profile/etc/profile has all the important environment variables, including XDG_DATA_DIRS. When I run `guix package --search-paths=prefix`, I see a list of the same variables. What do you see when you run that command? Luther