]>
Commit | Line | Data |
---|---|---|
2835d411 JR |
1 | diff -urN gdm-2.6.0.3.orig/config/Xsession.in gdm-2.6.0.3/config/Xsession.in |
2 | --- gdm-2.6.0.3.orig/config/Xsession.in 2004-05-28 21:50:17.000000000 +0200 | |
3 | +++ gdm-2.6.0.3/config/Xsession.in 2004-07-09 15:07:16.039478016 +0200 | |
2be8c616 | 4 | @@ -35,6 +35,10 @@ |
5 | test -f /etc/xprofile && . /etc/xprofile | |
e72f7d8b | 6 | test -f "$HOME/.xprofile" && . "$HOME/.xprofile" |
2be8c616 | 7 | |
8 | +if [ ! -f $HOME/.profile ] && echo $SHELL |grep -q "bash"; then | |
9 | + test -f $HOME/.bash_profile && . $HOME/.bash_profile | |
10 | +fi | |
11 | + | |
12 | # Translation stuff | |
13 | if [ -x "@EXPANDED_LIBEXECDIR@/gdmtranslate" ] ; then | |
14 | gdmtranslate="@EXPANDED_LIBEXECDIR@/gdmtranslate" | |
6294edc2 | 15 | @@ -222,14 +226,23 @@ |
e72f7d8b | 16 | fi |
17 | fi | |
18 | ||
19 | +# Keep in sync with Xclients from xinitrc-ng | |
20 | +syswmfile="/etc/sysconfig/desktop" | |
21 | + | |
22 | +# In this file "$wmstyledir" value may be given | |
23 | +[ -f "$syswmfile" ] && . $syswmfile | |
24 | + | |
25 | +if [ -z "$wmstyledir" ]; then | |
26 | + # Keep in sync with Xclients from xinitrc-ng | |
27 | + wmstyledir="/etc/sysconfig/wmstyle" | |
28 | +fi | |
29 | + | |
30 | +if [ -x "$HOME/bin/$command.sh" ]; then | |
31 | + command="$HOME/bin/$command.sh" | |
32 | +elif [ -x "$wmstyledir/$command.sh" ]; then | |
33 | + command="$wmstyledir/$command.sh" | |
34 | +fi | |
35 | + | |
6294edc2 JR |
36 | -# add ssh-agent if found |
37 | -sshagent="`gdmwhich ssh-agent`" | |
38 | -if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then | |
39 | - command="$sshagent -- $command" | |
40 | -elif [ -z "$sshagent" ] ; then | |
41 | - echo "$0: ssh-agent not found!" | |
42 | -fi | |
43 | - | |
44 | echo "$0: Setup done, will execute: $command" | |
45 | ||
46 | eval exec $command |