Skip to content

Commit

Permalink
postrm: Reconfigure a installed WM
Browse files Browse the repository at this point in the history
After removal we need to make sure that at least any WM is configured.
  • Loading branch information
MartinLinSup committed Oct 8, 2015
1 parent d9541c0 commit b45a34f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions DEBIAN/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ case "$1" in
db_purge
fi
rm -f /usr/sbin/kiosk-browser
# In a perfect world, this should also care for fvwm kdm lightdm xdm wdm slim lxdm gdm etc...
WMS=`dpkg-query -W -f='Package: ${Package}\nProvides: ${Provides}\n' | grep -B 1 -E "^Provides: .*x-display-manager" | grep Package | cut -d" " -f2`
for I in $WMS
do
dpkg -l $I | tail -1 | grep ^ii > /dev/null && break
done
dpkg-reconfigure $I


;;
*)
Expand Down

0 comments on commit b45a34f

Please sign in to comment.