all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: John Darrington <jmd@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/4] gnu: Add XFILESEARCH path to profiles' environment.
Date: Sun, 27 Nov 2016 22:22:34 +0100	[thread overview]
Message-ID: <87zikkk485.fsf@gnu.org> (raw)
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")

Hello!

John Darrington <jmd@gnu.org> skribis:

> * gnu/system.scm (operating-system-etc-service): Add new environment variable:
> 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.
>  
> +@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="$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")             = nil
libX11.so.6->getenv("XCOMPOSEFILE")              = nil
libX11.so.6->getenv("XKB_DEBUG")                 = nil
libX11.so.6->getenv("XKB_DISABLE")               = nil
libX11.so.6->getenv("XKEYSYMDB")                 = nil
libX11.so.6->getenv("XLIBBUFFERSIZE")            = nil
libX11.so.6->getenv("XLIB_SKIP_ARGB_VISUALS")    = nil
libX11.so.6->getenv("XLOCALEDIR")                = nil
libX11.so.6->getenv("XMODIFIERS")                = nil
libXau.so.6->getenv("XAUTHORITY")                = "/home/ludo/.Xauthority"
libXt.so.6->getenv("XAPPLRESDIR")                = nil
libXt.so.6->getenv("XENVIRONMENT")               = nil
libXt.so.6->getenv("XFILESEARCHPATH")            = nil
libXt.so.6->getenv("XTAPPPEEKEVENT_SKIPTIMER")   = nil
libXt.so.6->getenv("XUSERFILESEARCHPATH")        = 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=$HOME/.guix-profile/share/man:/run/current-system/profile/share/m
>  export INFOPATH=$HOME/.guix-profile/share/info:/run/current-system/profile/share/info
>  export XDG_DATA_DIRS=$HOME/.guix-profile/share:/run/current-system/profile/share
>  export XDG_CONFIG_DIRS=$HOME/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg
> +export XFILESEARCHPATH=\"$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’s 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’.

  parent reply	other threads:[~2016-11-27 21:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-25 19:08 [PATCH 1/4] gnu: Add XFILESEARCH path to profiles' environment John Darrington
2016-11-25 19:08 ` [PATCH 2/4] gnu: Add editres John Darrington
2016-11-27 21:22   ` Ludovic Courtès
2016-11-25 19:08 ` [PATCH 3/4] gnu: Remove wrappers from xfd and xfontsel John Darrington
2016-11-25 19:08 ` [PATCH 4/4] gnu: Xfig: Set XAPPLOADDIR John Darrington
2016-11-27 21:22 ` Ludovic Courtès [this message]
2016-11-28 13:19   ` [PATCH 1/4] gnu: Add XFILESEARCH path to profiles' environment John Darrington
2016-11-29 14:34     ` Ludovic Courtès
2016-11-29 18:16       ` John Darrington
2016-11-29 21:42         ` Ludovic Courtès
2016-11-30  5:36           ` John Darrington
2016-12-02 16:25           ` [PATCH] gnu: Patch libxt's default search path John Darrington
2016-12-04 21:19             ` Ludovic Courtès

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=87zikkk485.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=jmd@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.