From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: guix installed Emacs Date: Mon, 18 Apr 2016 23:08:42 +0200 Message-ID: References: <87potpj4w6.fsf@gmail.com> <877ffxixed.fsf@gmail.com> <20160416125924.GA11009@protected.rcdrun.com> <87shykd4lr.fsf@gmail.com> <8760vgtf1k.fsf@gmail.com> <87a8kqk96o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013a1a38f0b5e50530c8c340 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asGPU-000696-1v for help-guix@gnu.org; Mon, 18 Apr 2016 17:08:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asGPT-0007vf-63 for help-guix@gnu.org; Mon, 18 Apr 2016 17:08:43 -0400 Received: from mail-ig0-x22b.google.com ([2607:f8b0:4001:c05::22b]:34856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asGPT-0007vU-0M for help-guix@gnu.org; Mon, 18 Apr 2016 17:08:43 -0400 Received: by mail-ig0-x22b.google.com with SMTP id gy3so84317992igb.0 for ; Mon, 18 Apr 2016 14:08:42 -0700 (PDT) In-Reply-To: <87a8kqk96o.fsf@gmail.com> 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: Alex Kost Cc: help-guix@gnu.org --089e013a1a38f0b5e50530c8c340 Content-Type: text/plain; charset=UTF-8 2016-04-18 21:29 GMT+02:00 Alex Kost : > Ouch, I think this could happen just because Fedora doesn't set a > default value of xdg variables. So when some program sees that > XDG_DATA_DIRS is set, it doesn't use /usr/share anymore. So the problem > you faced will probably be fixed if you also append /usr/share to > XDG_DATA_DIRS. I would do it like this: > > # Set XDG variables to default values if needed. > [ ! -v XDG_DATA_DIRS ] && [ -d /usr/share ] && export > XDG_DATA_DIRS=/usr/share > [ ! -v XDG_CONFIG_DIRS ] && [ -d /etc/xdg ] && export > XDG_CONFIG_DIRS=/etc/xdg > > export XDG_DATA_DIRS="$HOME/.guix-profile/share:$XDG_DATA_DIRS" > > Thank you, Alex --089e013a1a38f0b5e50530c8c340 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2016-04-18 21:29 GMT+02:00 Alex Kost <alezost@gmail.com>= :
Ouch, I think this could happen just be= cause Fedora doesn't set a
default value of xdg variables.=C2=A0 So when some program sees that
XDG_DATA_DIRS is set, it doesn't use /usr/share anymore.=C2=A0 So the p= roblem
you faced will probably be fixed if you also append /usr/share to
XDG_DATA_DIRS.=C2=A0 I would do it like this:

=C2=A0 # Set XDG variables to default values if needed.
=C2=A0 [ ! -v XDG_DATA_DIRS ] && [ -d /usr/share ] && expor= t XDG_DATA_DIRS=3D/usr/share
=C2=A0 [ ! -v XDG_CONFIG_DIRS ] && [ -d /etc/xdg ] && expor= t XDG_CONFIG_DIRS=3D/etc/xdg

=C2=A0 export XDG_DATA_DIRS=3D"$HOME/.guix-profile/share:$XDG_DATA_DIR= S"



Thank you, Alex
--089e013a1a38f0b5e50530c8c340--