Re: The gnome-wm script - solution of the WM problem



Hi,

>>>>> On 23 Mar 1999 22:19:03 +0100
>>>>> Martin Baulig <martin@home-of-linux.org> said:

 Martin> It tries the following window managers:

 Martin> 	enlightenment icewm windowmaker fvwm2 fvwm

 Martin> if none of them can be found in the user's PATH, xterm will
 Martin> be used.

Please add "scwm" to the list.

I think before using a hard-coded list, the script should try the
data of wm-properties. I.e:

for i in $HOME/.gnome/wm-properties/*.desktop \
         @datadir@/gnome/wm-properties/*.desktop; do
  if which $(sed -n 's/^TryExec=\(.*\)/\1/p' $i) >/dev/null 2>&1; then
    WINDOW_MANAGER=$(sed -n 's/^Exec=\(.*\)/\1/p' $i)
    break
  fi
done

This enables users and administrators to add information about unknown 
WMs easily.

        Robbe

-- 
Robert Bihlmeyer	reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe@orcus.priv.at>	<http://stud2.tuwien.ac.at/~e9426626/sig.html>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]