gst-gmyth/debian/maemo-nuvdemux.postinst
branchtrunk
changeset 824 e711a64ba03d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gst-gmyth/debian/maemo-nuvdemux.postinst	Thu Aug 23 20:24:11 2007 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +#! /bin/sh
     1.5 +set -e
     1.6 +
     1.7 +#DEBHELPER#
     1.8 +
     1.9 +# Register our X Desktop Group Shared MIME-info Database info
    1.10 +if [ -x /usr/bin/update-mime-database ] ; then
    1.11 +        /usr/bin/update-mime-database /usr/share/mime
    1.12 +fi
    1.13 +
    1.14 +# Register a new type on Osso Media Server
    1.15 +if [ -x /usr/bin/gconftool-2 ] ; then
    1.16 +    /usr/bin/gconftool-2 --makefile-install-rule /usr/share/gconf/schemas/osso_media_server_nuv.schemas
    1.17 +fi
    1.18 +
    1.19 +#append nuv info on osso mediaplayer ui
    1.20 +data_file=/usr/share/applications/hildon/mp_ui.desktop
    1.21 +tmp_file=/tmp/mp_ui.desktop
    1.22 +cat $data_file | sed 's/X-Osso-URI-Actions=rtsp/X-Osso-URI-Actions=rtsp;myth/' | sed 's/MimeType=\(.*\)/MimeType=\1;video\/x-nuv/'  > $tmp_file
    1.23 +echo -e "\n\n[X-Osso-URI-Action Handler myth] \nMethod=mime_open\nName=medi_ap_mediaplayer_name\nTranslationDomain=mediaplayer" >> $tmp_file
    1.24 +cat $tmp_file > $data_file
    1.25 +echo "FILE DESKTOP UPDATED"
    1.26 +
    1.27 +exit 0