From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/4] gnu: Add XFILESEARCH path to profiles' environment. Date: Sun, 27 Nov 2016 22:22:34 +0100 Message-ID: <87zikkk485.fsf@gnu.org> References: <1480100924-23868-1-git-send-email-jmd@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB6uG-0001ep-PC for guix-devel@gnu.org; Sun, 27 Nov 2016 16:22:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cB6uD-0002o3-KW for guix-devel@gnu.org; Sun, 27 Nov 2016 16:22:40 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB6uD-0002nu-H4 for guix-devel@gnu.org; Sun, 27 Nov 2016 16:22:37 -0500 In-Reply-To: <1480100924-23868-1-git-send-email-jmd@gnu.org> (John Darrington's message of "Fri, 25 Nov 2016 20:08:41 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: John Darrington Cc: guix-devel@gnu.org Hello! John Darrington skribis: > * gnu/system.scm (operating-system-etc-service): Add new environment vari= able: > XFILESEARCHPATH > --- > doc/guix.texi | 30 ++++++++++++++++++++++++++++++ > gnu/system.scm | 25 +++++++++++++++++++++++++ > 2 files changed, 55 insertions(+) The guix.texi change is missing from the log. > diff --git a/doc/guix.texi b/doc/guix.texi > index e64c361..9d133bb 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -1209,6 +1209,36 @@ data in the right format. > This is important because the locale data format used by different libc > versions may be incompatible. >=20=20 > +@subsection X Window System > +@vindex XFILESEARCHPATH > +@vindex @code{Xt} > +@vindex X Toolkit Intrinsics > +@vindex @command{xterm} > + > +If you intend to use X Toolkit Intrinsics client applications such > +as @command{xterm} then you should define the @code{XFILESEARCHPATH} > +environment variable: > + > +@example > +$ export XFILESEARCHPATH=3D"$HOME/.guix-profile/share/X11/%L/%T/%N%C%S: > + $HOME/.guix-profile/share/X11/%l/%T/%N%C%S: > + $HOME/.guix-profile/share/X11/%T/%N%C%S: > + $HOME/.guix-profile/share/X11/%L/%T/%N%S: > + $HOME/.guix-profile/share/X11/%l/%T/%N%S: > + $HOME/.guix-profile/share/X11/%T/%N%S: > + $HOME/.guix-profile/lib/X11/%L/%T/%N%C%S: > + $HOME/.guix-profile/lib/X11/%l/%T/%N%C%S: > + $HOME/.guix-profile/lib/X11/%T/%N%C%S: > + $HOME/.guix-profile/lib/X11/%L/%T/%N%S: > + $HOME/.guix-profile/lib/X11/%l/%T/%N%S: > + $HOME/.guix-profile/lib/X11/%T/%N%S" > +@end example Seriously?! I mean, we can reasonably ask people to do that, can we? Is there another way? Naive approach to look for candidate variables: --8<---------------cut here---------------start------------->8--- $ ltrace -e getenv xterm 2>&1 |grep '"X'|sort -u libX11.so.6->getenv("XCOMPOSECACHE") =3D nil libX11.so.6->getenv("XCOMPOSEFILE") =3D nil libX11.so.6->getenv("XKB_DEBUG") =3D nil libX11.so.6->getenv("XKB_DISABLE") =3D nil libX11.so.6->getenv("XKEYSYMDB") =3D nil libX11.so.6->getenv("XLIBBUFFERSIZE") =3D nil libX11.so.6->getenv("XLIB_SKIP_ARGB_VISUALS") =3D nil libX11.so.6->getenv("XLOCALEDIR") =3D nil libX11.so.6->getenv("XMODIFIERS") =3D nil libXau.so.6->getenv("XAUTHORITY") =3D "/home/ludo/.Xauthorit= y" libXt.so.6->getenv("XAPPLRESDIR") =3D nil libXt.so.6->getenv("XENVIRONMENT") =3D nil libXt.so.6->getenv("XFILESEARCHPATH") =3D nil libXt.so.6->getenv("XTAPPPEEKEVENT_SKIPTIMER") =3D nil libXt.so.6->getenv("XUSERFILESEARCHPATH") =3D nil --8<---------------cut here---------------end--------------->8--- Would one of these work better? :-) > --- a/gnu/system.scm > +++ b/gnu/system.scm > @@ -419,6 +419,31 @@ export MANPATH=3D$HOME/.guix-profile/share/man:/run/= current-system/profile/share/m > export INFOPATH=3D$HOME/.guix-profile/share/info:/run/current-system/pro= file/share/info > export XDG_DATA_DIRS=3D$HOME/.guix-profile/share:/run/current-system/pro= file/share > export XDG_CONFIG_DIRS=3D$HOME/.guix-profile/etc/xdg:/run/current-system= /profile/etc/xdg > +export XFILESEARCHPATH=3D\"$HOME/.guix-profile/share/X11/%L/%T/%N%C%S:\\ > +$HOME/.guix-profile/share/X11/%l/%T/%N%C%S:\\ > +$HOME/.guix-profile/share/X11/%T/%N%C%S:\\ > +$HOME/.guix-profile/share/X11/%L/%T/%N%S:\\ > +$HOME/.guix-profile/share/X11/%l/%T/%N%S:\\ > +$HOME/.guix-profile/share/X11/%T/%N%S:\\ > +$HOME/.guix-profile/lib/X11/%L/%T/%N%C%S:\\ > +$HOME/.guix-profile/lib/X11/%l/%T/%N%C%S:\\ > +$HOME/.guix-profile/lib/X11/%T/%N%C%S:\\ > +$HOME/.guix-profile/lib/X11/%L/%T/%N%S:\\ > +$HOME/.guix-profile/lib/X11/%l/%T/%N%S:\\ > +$HOME/.guix-profile/lib/X11/%T/%N%S:\\ > +/run/current-system/profile/share/X11/%L/%T/%N%C%S:\\ > +/run/current-system/profile/share/X11/%l/%T/%N%C%S:\\ > +/run/current-system/profile/share/X11/%T/%N%C%S:\\ > +/run/current-system/profile/share/X11/%L/%T/%N%S:\\ > +/run/current-system/profile/share/X11/%l/%T/%N%S:\\ > +/run/current-system/profile/share/X11/%T/%N%S:\\ > +/run/current-system/profile/lib/X11/%L/%T/%N%C%S:\\ > +/run/current-system/profile/lib/X11/%l/%T/%N%C%S:\\ > +/run/current-system/profile/lib/X11/%T/%N%C%S:\\ > +/run/current-system/profile/lib/X11/%L/%T/%N%S:\\ > +/run/current-system/profile/lib/X11/%l/%T/%N%S:\\ > +/run/current-system/profile/lib/X11/%T/%N%S\" That=E2=80=99s unreasonable IMO. Is this motivated by the broken ctrl-click in xterm? That thing used to work, I wonder what happened. Thanks for investigating! Ludo=E2=80=99.