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, 2 insertions, 3 deletions
diff --git a/autoscripts/postinst-wm b/autoscripts/postinst-wm
index aef412a3..925c7883 100644
--- a/autoscripts/postinst-wm
+++ b/autoscripts/postinst-wm
@@ -1,4 +1,3 @@
-if [ "$1" = "configure" ]; then
- update-alternatives --install /usr/bin/x-window-manager \
- x-window-manager #WM# #PRIORITY#
+if command -v register-window-manager >/dev/null 2>&1; then
+ register-window-manager --add #WM#
fi