diff options
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-wm | 5 | ||||
-rw-r--r-- | autoscripts/postrm-wm | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/autoscripts/postinst-wm b/autoscripts/postinst-wm index 94c052fc..794ad700 100644 --- a/autoscripts/postinst-wm +++ b/autoscripts/postinst-wm @@ -1,3 +1,2 @@ -if [ -x /usr/sbin/register-window-manager ] ; then - register-window-manager --add #WM# -fi +update-alternatives --install /usr/bin/x-window-manager \ + x-window-manager #WM# #PRIORITY# diff --git a/autoscripts/postrm-wm b/autoscripts/postrm-wm index 6dc9f5da..c4670b9f 100644 --- a/autoscripts/postrm-wm +++ b/autoscripts/postrm-wm @@ -1,3 +1,2 @@ -if [ "$1" == "purge" -a -x /usr/sbin/register-window-manager ] ; then - register-window-manager --remove #WM# -fi +update-alternatives --remove x-window-manager #WM# + |