summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-wm
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-wm')
-rw-r--r--autoscripts/postinst-wm5
1 files changed, 3 insertions, 2 deletions
diff --git a/autoscripts/postinst-wm b/autoscripts/postinst-wm
index 925c7883..aef412a3 100644
--- a/autoscripts/postinst-wm
+++ b/autoscripts/postinst-wm
@@ -1,3 +1,4 @@
-if command -v register-window-manager >/dev/null 2>&1; then
- register-window-manager --add #WM#
+if [ "$1" = "configure" ]; then
+ update-alternatives --install /usr/bin/x-window-manager \
+ x-window-manager #WM# #PRIORITY#
fi