post_install() {
  update-desktop-database -q

  # For LinHES: check for a fluxbox keys file that doesnt have a mapping
  # for Alt-w and map it to firefox.

  if [ -e /home/mythtv/.fluxbox/keys ] 
  then
    if ! grep -q "Mod1 w" /home/mythtv/.fluxbox/keys 
    then
      echo Adding fluxbox key for firefox.
      echo "Mod1 w :ExecCommand firefox" >> /home/mythtv/.fluxbox/keys
    fi
  fi
}

post_upgrade() {
  post_install $1
}

post_remove() {
  update-desktop-database -q
}