--- Begin Message ---
Hi.
In <handler.s.C.95209392827817.transcript@bugs.debian.org>,
at Date: 3 Mar 2000 15:03:15 -0000,
on Subject: Processed: Re: Bug#59534: /etc/X11/Xsession doesn't start window-manager anymore,
owner@bugs.debian.org (Debian Bug Tracking System) writes:
> Processing commands for control@bugs.debian.org:
>
> > reassign 59534 asclassic
> Bug#59534: /etc/X11/Xsession doesn't start window-manager anymore
> Bug reassigned from package `xfree86-common' to `asclassic'.
>
> > thanks
> Stopping processing here.
>
> Please contact me if you need assistance.
>
> Darren Benham
> (administrator, Debian Bugs database)
I checked BTS, and found this report.
%%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%% %%%%%
| Package: xfree86-common
| Version: 3.3.6-4
| Severity: important
|
| While yesterdays upgrade from 3.3.6-3 (I believe to remeber) to
| 3.3.6-4, the script /etc/X11/Xsession was modified which may cause
| that no window-manager will be started after starting the session.
(snip)
| The complete elif-branch disappeared. Now, the only other way to get
| the window-manager started is:
|
| elif [ -x /usr/bin/x-window-manager ]; then
| realstartup=x-window-manager
| fi
|
| which works wonderful if update-alternatives was used to register a
| x-window-manager, as
| `register-window-manager --add /usr/X11/bin/afterstep`
|
| told me to do). register-window-manager tells that it will "soon
| become obsolete". Obviously this is already true. I had to find out
| the syntax of update-alternatives and manually do a
|
| `update-alternatives --install /usr/bin/x-window-manager \
| x-window-manager /usr/X11R6/bin/afterstep 10`
|
| which probably should be done by the postinst script of
| xfree86-common.
But the postinst of asclassic_1.1b-11 must have these lines:
# this will be obsoleted soon, according to the message
# from register-window-manager.
if command -v register-window-manager >/dev/null 2>&1;
then
register-window-manager --add asclassic
fi
# new recommended way to handle x-window-manager
update-alternatives --install /usr/bin/x-window-manager \
x-window-manager /usr/bin/X11/${wm} 50 \
--slave /usr/share/man/man1/x-window-manager.1.gz \
x-window-manager.1.gz /usr/X11R6/man/man1/${wm}.1x.gz
;;
I checked this on my potato machine, and my system has the lines
50
/usr/X11R6/man/man1/asclassic.1x.gz
in /var/lib/dpkg/alternatives/x-window-manager.
Which version of asclassic do you use, Rene ? Is it 1.1b-11 ?
Then I must know why "update-alternatives" command does not
work on your system. I re-checked asclassic package by removing
and re-installing it, and it does work well on my system.
It is registerd as /usr/bin/x-window-manager at the file
/var/lib/dpkg/alternatives/x-window-manager.
| I suggest that the postinst script should be fixed. The now unused
| register-window-manager machanism should be removed, so that no unused
| files remain on the system.
I left the command "register-window-manager" in postinst of 1.1b-11
intentionally, because when I uploaded it, /etc/X11/Xsession prefers
the /etc/X11/window-managers than /usr/bin/x-window-manager.
I had thought that before removing that part, the prefered order
is changed, and /usr/bin/x-window-manager gets the priority over
/etc/X11/window-managers...
OK, I will upload the version 1.1b-12 without register-window-manager
in postinst. Since the /etc/X11/window-manager is nolonger used,
that part is useless anyway.
But removing register-window-manager from postinst does not remove
the line in /etc/X11/window-manager unless users do "--purge" for
packages of window-managers.
The command "register-window-manager --remove" has been included
in postrm, and next version will remove that command from postrm also.
So, if you wish to remove the file /etc/X11/window-manager,
then you have to do it by yourself.
Branden, can you add the command to remove that file
(rm -f /etc/X11/window-manager) at preinst or postinst of
your xfree86-common (the package which has /usr/sbin/register-window-manager)
and change the command /usr/bin/register-window-manager to do just warning.
(by removing the part which edit the contents of /etc/X11/window-manager.)
That action may satisfy the request from Rene (removing unused file).
The file /etc/X11/window-manager on my system has the lines:
/usr/bin/X11/wmaker
/usr/bin/X11/twm
/usr/bin/X11/asclassic
/usr/bin/X11/icewm
/usr/bin/X11/icewm-gnome
Since twm's postinst and postrm does not have register-window-manager
anymore, the line for twm may be the remains from the older version.
| If I'm completely wrong and the postinst script is correct, than my
| trouble could be caused by uninstalling the packet asclassic. I'd be
| glad to provide you with information if that seems to be the cause.
Hmm, I begin to think that "register-window-manager --remove" should be
in prerm, not in postrm. But the manpage of register-window-manager said:
Typically this command is invoked by the post-installation
and post-removal scripts of a package containing an X window manager.
So, the line in /etc/X11/window-manager is not removed unless user
does "dpkg --purge" for that package. "dpkg --remove" just removes
the program and related files, but does not remove the entry in
/etc/X11/window-manager.
On the otherhand, the manpage of update-alternatives said:
update-alternatives is usually called from the postinst or
prerm scripts in Debian packages.
And the prerm script of asclassic does call "update-alternatives --remove".
So you may misunderstood the problem, Rene. But if the postinst
script of asclassic does not work on your system in fact, then
please let me know more detail.
I need the exact precise procedure that you did, and informations
about your system. Because I can't think up the reason why
"update-alternatives --install" command does not work.
| I'm using newest available potato-packages (apt-update on Mar, 2).
|
| Thanks,
| Rene
I will close this report by uploading asclassic_1.1b-12, which
removes the obsoleted "register-window-manager" command from
both of postinst/postrm.
If you are sure that "update-alternatives --install" in postinst
does not work at all, then please re-open this report, and let me
know the detail as much as you can. Thanks.
--
Taketoshi Sano: <sano@debian.org>,<sano@debian.or.jp>,<kgh12351@xxxxxxxxxxx>
--- End Message ---