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

preserving window manager selection on upgrades.



On Mon, May 15, 2000 at 04:13:55PM -0700, Ben Gertzfield wrote:
>     Daniel>   Will this affect people upgrading directly from slink
>     Daniel> (whose window-manager preferences won't yet be stored via
>     Daniel> alternatives)?  Or is there stuff in the scripts to try to
>     Daniel> preserve settings?
> 
> I'm pretty sure when I upgraded from slink that my window manager
> settings were silently ignored and I had to explore for a while to
> figure out about the new update-alternatives setup. (I could be
> misremembering, though.)

Ouch. We should fix that... Maybe xfree86-common could do something like
this in its postinst:

if [ "$2" ] && dpkg --compare-versions "$2" lt 3.3.2.3a; then
  wm=$(grep "^[^ *#]" /etc/X11/window-managers 2>/dev/null | head -1)
  if [ "$wm" ]; then 
    update-alternatives --install /usr/bin/x-window-manager \
      x-window-manager $wm 100
  fi
fi

Branden, what do you think?

> Joe Schmoe User is not going to have a chance in hell of figuring out
> how to use update-alternatives to set their window manager

Actually, it's easy to use now, just do `update-alternatives --config
x-window-manager'. But of course, you'd first have to know the name of the
alternative... so it better be done automatically on upgrade.

-- 
Digital Electronic Being Intended for Assassination and Nullification



Reply to: