unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Luther Thompson <lutheroto@gmail.com>
To: HiPhish <hiphish@posteo.de>
Cc: help-guix@gnu.org
Subject: Re: Guix and $XDG_DATA_DIRS
Date: Thu, 11 Apr 2019 13:58:56 -0400	[thread overview]
Message-ID: <20190411135856.0c6eeb26@gmail.com> (raw)
In-Reply-To: <4716913.Tid4HlZl5B@aleksandar-ixtreme-m5740>

On Thu, 11 Apr 2019 19:06:03 +0200
HiPhish <hiphish@posteo.de> 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

  reply	other threads:[~2019-04-11 17:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-11 17:06 Guix and $XDG_DATA_DIRS HiPhish
2019-04-11 17:58 ` Luther Thompson [this message]
2019-04-11 18:56   ` HiPhish
2019-04-11 23:04     ` Luther Thompson
2019-04-12  6:11       ` HiPhish
2019-04-12  9:11         ` Ricardo Wurmus
2019-04-12 12:20           ` HiPhish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190411135856.0c6eeb26@gmail.com \
    --to=lutheroto@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=hiphish@posteo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).