Add alternatives configuration via x-window-manager. Thanks to Horst

SVN revision: 32676
This commit is contained in:
kaethorn 2007-11-14 14:04:49 +00:00 committed by kaethorn
parent d9c1da31df
commit a4c4b917a4
2 changed files with 27 additions and 0 deletions

23
debian/enlightenment.postinst vendored Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
set -e
add_wm_entry ()
{
update-alternatives --install /usr/bin/x-window-manager \
x-window-manager /usr/bin/enlightenment_start 50
}
case "$1" in
configure)
add_wm_entry
;;
abort-*)
exit 1
;;
*)
;;
esac
#DEBHELPER#

4
debian/enlightenment.preinst vendored Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
if test -x /usr/sbin/update-alternatives; then
update-alternatives --remove x-window-manager /usr/bin/enlightenment_start
fi