unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Guix and $XDG_DATA_DIRS
@ 2019-04-11 17:06 HiPhish
  2019-04-11 17:58 ` Luther Thompson
  0 siblings, 1 reply; 7+ messages in thread
From: HiPhish @ 2019-04-11 17:06 UTC (permalink / raw)
  To: help-guix

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?

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-04-12 12:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-11 17:06 Guix and $XDG_DATA_DIRS HiPhish
2019-04-11 17:58 ` 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

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).