all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: HiPhish <hiphish@posteo.de>
To: help-guix@gnu.org
Subject: Guix and $XDG_DATA_DIRS
Date: Thu, 11 Apr 2019 19:06:03 +0200	[thread overview]
Message-ID: <4716913.Tid4HlZl5B@aleksandar-ixtreme-m5740> (raw)

Hello everyone,

I noticed that when I use Guix to install an application that has a desktop 
entry, such as Gimp, Inkscape or Krita, that application does not show up in 
my applications menu (using KDE on Kubuntu). After some digging I have found 
that the environment variable $XDG_DATA_DIRS is responsible for this.

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?

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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-11 17:06 HiPhish [this message]
2019-04-11 17:58 ` Guix and $XDG_DATA_DIRS Luther Thompson
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

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

  git send-email \
    --in-reply-to=4716913.Tid4HlZl5B@aleksandar-ixtreme-m5740 \
    --to=hiphish@posteo.de \
    --cc=help-guix@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.