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


>>>>> On 23 Mar 1999 22:19:03 +0100
>>>>> Martin Baulig <> 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)

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


Robert Bihlmeyer	reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<>	<>

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