Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-slsdetector
Commits
73714c1b
Commit
73714c1b
authored
Sep 14, 2018
by
Alejandro Homs Puron
Committed by
operator for beamline
Sep 14, 2018
Browse files
Doc: add Xsession patch propagating login LD_LIBRARY_PATH
parent
6bfd1202
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/installation.rst
View file @
73714c1b
...
...
@@ -495,6 +495,29 @@ if present, or the manually installed *cmake-3.8.0*:
fi
...
*Xsession*
~~~~~~~~~~
*Xsession* executes *ssh-agent*, which has the *setgid* bit set. This forces
*Linux* to clear its *LD_LIBRARY_PATH*, and hence that of its descendant processes -
the full *X11* session. The following patch propagates the *LD_LIBRARY_PATH*
configured at login (*.bash_profile*) to the *X11* session:
::
# as root
lid10eiger1:~ # (
Xsession_patch="/etc/X11/Xsession.d/80ld_library_path"
[ -f ${Xsession_patch} ] || cat > ${Xsession_patch} <<'EOF'
# This file is sourced by Xsession(5), not executed.
# ensure LD_LIBRARY_PATH is propagated after ssh-agent is executed
STARTUP="${LD_LIBRARY_PATH:+env LD_LIBRARY_PATH=$LD_LIBRARY_PATH} $STARTUP"
# vim:set ai et sts=2 sw=2 tw=80:
EOF
)
Network configuration
---------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment