Browse Source

source the /etc/profile in xfree86/Xsession to start /opt/bin binaries from xdm

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2129 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
08f482b11e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      package/x11/xfree86/startwm.patch

+ 4
- 1
package/x11/xfree86/startwm.patch

@ -21,11 +21,14 @@ More flexible root application startup. Kind of ROCK Linux specific.
--- ./programs/xdm/config/Xsession.orig Sun Jan 11 04:48:32 1998
+++ ./programs/xdm/config/Xsession Thu Dec 28 15:23:15 2000
@@ -33,5 +33,11 @@
@@ -33,5 +33,14 @@
if [ -r "$resources" ]; then
xrdb -load "$resources"
fi
+
+ # we need at least the PATH /opt/*/bin expansion ...
+ [ -f /etc/profile ] && . /etc/profile
+
+ WINDOWMANAGER="${WINDOWMANAGER:-startkde}"
+ [ "$WINDOWMANAGER" = "gnome" ] && WINDOWMANAGER="gnome-session"
+ [ "$WINDOWMANAGER" = "kde" ] && WINDOWMANAGER="startkde"

Loading…
Cancel
Save