Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 148413 Details for
Bug 164869
LD_LIBRARY_PATH not inherited from .bash_profile
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch to fix LD_LIBRARY_PATH issue.
xinitrc_ld_library_path (text/plain), 3.39 KB, created by
ritz
on 2007-02-20 14:49:59 UTC
(
hide
)
Description:
proposed patch to fix LD_LIBRARY_PATH issue.
Filename:
MIME Type:
Creator:
ritz
Created:
2007-02-20 14:49:59 UTC
Size:
3.39 KB
patch
obsolete
>diff -Naur X11.orig/xdm/Xsession /etc/X11/xdm/Xsession >--- X11.orig/xdm/Xsession 2007-02-21 03:34:11.000000000 +0530 >+++ /etc/X11/xdm/Xsession 2007-02-21 03:35:13.000000000 +0530 >@@ -51,21 +51,21 @@ > exec -l $SHELL -c "xterm -geometry 80x24-0-0" > ;; > gnome) >- exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH gnome-session" >+ exec -l $SHELL -c "/etc/X11/xinit/xinitrc-ssh $DBUS_LAUNCH gnome-session" > ;; > kde|kde1|kde2) >- exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH $SWITCHDESKPATH/Xclients.kde" >+ exec -l $SHELL -c "/etc/X11/xinit/xinitrc-ssh $DBUS_LAUNCH $SWITCHDESKPATH/Xclients.kde" > ;; > twm) > # fall back to twm >- exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH $SWITCHDESKPATH/Xclients.twm" >+ exec -l $SHELL -c "/etc/X11/xinit/xinitrc-ssh $DBUS_LAUNCH $SWITCHDESKPATH/Xclients.twm" > ;; > *) > # GDM provies either a command line as the first argument or > # provides 'failsafe', 'default' or 'custom'. KDM will do the > # same at some point > if [ "$1" != "default" -a "$1" != "custom" ]; then >- exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH $1" >+ exec -l $SHELL -c "/etc/X11/xinit/xinitrc-ssh $DBUS_LAUNCH $1" > fi > ;; > esac >@@ -73,11 +73,11 @@ > > # otherwise, take default action > if [ -x "$HOME/.xsession" ]; then >- exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH $HOME/.xsession" >+ exec -l $SHELL -c "/etc/X11/xinit/xinitrc-ssh $DBUS_LAUNCH $HOME/.xsession" > elif [ -x "$HOME/.Xclients" ]; then >- exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH $HOME/.Xclients" >+ exec -l $SHELL -c "/etc/X11/xinit/xinitrc-ssh $DBUS_LAUNCH $HOME/.Xclients" > elif [ -x /etc/X11/xinit/Xclients ]; then >- exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH /etc/X11/xinit/Xclients" >+ exec -l $SHELL -c "/etc/X11/xinit/xinitrc-ssh $DBUS_LAUNCH /etc/X11/xinit/Xclients" > else > # should never get here; failsafe fallback > exec -l $SHELL -c "xsm" >diff -Naur X11.orig/xinit/xinitrc-common /etc/X11/xinit/xinitrc-common >--- X11.orig/xinit/xinitrc-common 2007-02-21 03:34:11.000000000 +0530 >+++ /etc/X11/xinit/xinitrc-common 2007-02-21 03:35:13.000000000 +0530 >@@ -60,16 +60,6 @@ > fi > done > >-# Prefix launch of session with ssh-agent if available and not already running. >-SSH_AGENT= >-if [ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ]; then >- if [ "$TMPDIR" != "" ]; then >- SSH_AGENT="/usr/bin/ssh-agent /bin/env TMPDIR=$TMPDIR" >- else >- SSH_AGENT="/usr/bin/ssh-agent" >- fi >-fi >- > DBUS_LAUNCH= > [ -x /usr/bin/dbus-launch -a -z "$DBUS_SESSION_BUS_ADDRESS" ] && DBUS_LAUNCH="/usr/bin/dbus-launch --exit-with-session" > >diff -Naur X11.orig/xinit/xinitrc-ssh /etc/X11/xinit/xinitrc-ssh >--- X11.orig/xinit/xinitrc-ssh 2007-02-21 03:34:11.000000000 +0530 >+++ /etc/X11/xinit/xinitrc-ssh 2007-02-21 03:36:09.000000000 +0530 >@@ -0,0 +1,22 @@ >+#!/bin/bash >+ >+# A script so that >+# 1) we read the standard system env vars >+# 2) syadmins/integrators can add their own private options etc... >+ >+ENV= >+if [ $USER != "root" -a "$LD_LIBRARY_PATH" != "" ]; then >+ ENV="/bin/env LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >+ echo $ENV>/tmp/rnv >+fi >+ >+SSH_AGENT= >+if [ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ]; then >+ if [ "$TMPDIR" != "" ]; then >+ SSH_AGENT="/usr/bin/ssh-agent /bin/env TMPDIR=$TMPDIR" >+ else >+ SSH_AGENT="/usr/bin/ssh-agent" >+ fi >+fi >+ >+exec -l $SHELL -c "$SSH_AGENT $ENV $* "
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 164869
:
144136
| 148413