gnome-wm doesn't obey local setting
Hello,
With my 'sid' box, I've set this in my ~/.Xsession :
export WINDOW_MANAGER=sawfish
export LANG=th_TH
exec gnome-session
But the window manager actually activated was still WindowMaker, as the
following symlink made it so :-
$ ls -l /etc/alternatives/x-window-manager
lrwxrwxrwx 1 root root 21 A.$. 29 19:02
/etc/alternatives/x-window-manager -> /usr/X11R6/bin/wmaker
But, with the WINDOW_MANAGER environment set, it should have been sawfish.
Would the patch for the /usr/bin/gnome-wm below be appropriate to apply?
-Theppitak.
--
Theppitak Karoonboonyanan
Information Research and Development Division, NECTEC
(Was: Software and Language Engineering Laboratory)
http://www.links.nectec.or.th/~thep/ mailto:theppitak@nectec.or.th
--- gnome-wm Tue Jan 23 10:26:18 2001
+++ gnome-wm.WINDOW_MANAGER Tue Jan 30 10:58:23 2001
@@ -37,7 +37,9 @@
done
# Get default wm out of x-window-manager
-WINDOW_MANAGER=`readlink /etc/alternatives/x-window-manager` 2> /dev/null
+if [ ! "$WINDOW_MANAGER" ]; then
+ WINDOW_MANAGER=`readlink /etc/alternatives/x-window-manager` 2> /dev/null
+fi
# If no window manager can be found, we default to xterm
if [ ! "$WINDOW_MANAGER" ]; then
Reply to: