X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostinst-wm;h=ee636287af06639d2e2fc7485ba1325f21a73a24;hb=731152b39ab2a84e565dd5b2663ad94c4a656c12;hp=94c052fc87d966c2b73f41e3da4f59b726615503;hpb=75275ded89f0b456e7e396008af153d26bb35626;p=debhelper.git diff --git a/autoscripts/postinst-wm b/autoscripts/postinst-wm index 94c052f..ee63628 100644 --- a/autoscripts/postinst-wm +++ b/autoscripts/postinst-wm @@ -1,3 +1,6 @@ -if [ -x /usr/sbin/register-window-manager ] ; then - register-window-manager --add #WM# +if [ "$1" = "configure" ]; then + update-alternatives --install /usr/bin/x-window-manager \ + x-window-manager #WM# #PRIORITY# \ + --slave /usr/share/man/man1/x-window-manager.1.gz \ + x-window-manager.1.gz #WMMAN# fi