On Mon, Apr 27, 1998 at 11:11:12PM -0600, Jason Gunthorpe wrote:
 
> I was just setting up a new install and ran into the problem of wmaker
> configuring itself before /etc/X11/window-managers existed, it's postinst
> bombed.

This was reported as a bug, and it is fixed on 0.14.1-4, is it not?!? (I ask
because 0.14.1-4 is, I think, installed on master, anyway, I just uploaded
0.14.1-5)

> I presume some X package creates this file since dpkg can't find it, this
> also means that every window manager has a dependency on that package or
> has a bug..

I had two options to fix this. First, the problem: xbase creates the file on
postinst and wmaker's (and every other wm) postinst adds entries to the file.
Fixes: 1) make wm predepend on xbase 2) make wm create the file. I *asked*
on debian-mentors what to do, and nobody answered. I went for 2)

The current postinst reads:

  if [ -e $wmfile ] ; then
    [ ... stuff to do if the file is there ]
  else
    cat >$wmfile <<EOF
# This file contains a list of available window managers. The default
# Xsession file will start the first window manager that it can
# in this list.
/usr/X11R6/bin/wmaker
/usr/X11R6/bin/twm
EOF
  fi

xbase deals with this nicely. (FWIW, I add twm because that's the wm xbase
provides, and it won't add it to the list if /etc/X11/window-managers is
already present on the system. I filed a bug against xbase because of this)

If this discussion continues, I think this should go to debian-policy.

                        Marcelo


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to