From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: [PATCH 1/4] gnu: Add XFILESEARCH path to profiles' environment. Date: Fri, 25 Nov 2016 20:08:41 +0100 Message-ID: <1480100924-23868-1-git-send-email-jmd@gnu.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cALrt-00052N-F8 for guix-devel@gnu.org; Fri, 25 Nov 2016 14:09:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cALrq-00040q-Bi for guix-devel@gnu.org; Fri, 25 Nov 2016 14:09:05 -0500 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: guix-devel@gnu.org Cc: John Darrington * 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(+) 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 + +@noindent +This (rather long) definition provides the search path which the @code{Xt} +library uses to search for resource files and other files needed for correct +running of applications. + @subsection X11 Fonts @cindex fonts diff --git a/gnu/system.scm b/gnu/system.scm index 4e57f97..729a1a0 100644 --- 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\" + # Ignore the default value of 'PATH'. unset PATH -- 2.1.4