Imported version 0.1
[cl-launcher] / debian / cl-launcher.postinst
diff --git a/debian/cl-launcher.postinst b/debian/cl-launcher.postinst
new file mode 100755 (executable)
index 0000000..40ba6a1
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ -f /etc/X11/Xsession.post/22camera-ui ]; then
+       mv /etc/X11/Xsession.post/22camera-ui /etc/X11/Xsession.post/22camera-ui.removed
+fi
+
+/usr/sbin/dsmetool -k /usr/bin/camera-ui
+/usr/sbin/dsmetool -t /usr/bin/cl-launcher
+
+exit 0