#!/bin/bash

export ARG0=$0

POSTINST_DIR=${ARG0%/*}  # Delete trailing file name.
POSTINST_DIR=$( cd $POSTINST_DIR; pwd )
export POSTINST_DIR
pushd $POSTINST_DIR  > /dev/null


. ./functions

# XXXRGG: Integrate this stuff
# The 40, 50 prefixs here are used to control the order in which these scripts run
# They run in z-a9-0 order. We want realplay to run after hxplay to ensure that if
# both players are installed, realplay is preferred.

eval_cmd cp $INSTDIR/mozilla-prefs-hxplay.js /usr/lib/mozilla/defaults/pref/50-hxplay.js
eval_cmd cp $INSTDIR/mozilla-prefs-realplay.js /usr/lib/mozilla/defaults/pref/40-realplay.js

#last_cmd_status_check

popd > /dev/null

