gst-plugins-nuvdemux/debian/maemo-nuvdemux.postinst
author renatofilho
Mon Apr 30 23:20:15 2007 +0100 (2007-04-30)
branchtrunk
changeset 607 cd48d7f0ca59
parent 318 0944bea397f9
permissions -rw-r--r--
[svn r613] updated debian scripts for append info on osso media player desktop file
     1 #! /bin/sh
     2 set -e
     3 
     4 #DEBHELPER#
     5 
     6 # Register our X Desktop Group Shared MIME-info Database info
     7 if [ -x /usr/bin/update-mime-database ] ; then
     8         /usr/bin/update-mime-database /usr/share/mime
     9 fi
    10 
    11 # Register a new type on Osso Media Server
    12 if [ -x /usr/bin/gconftool-2 ] ; then
    13     /usr/bin/gconftool-2 --makefile-install-rule /usr/share/gconf/schemas/osso_media_server_nuv.schemas
    14 fi
    15 
    16 #append nuv info on osso mediaplayer ui
    17 data_file=/usr/share/applications/hildon/mp_ui.desktop
    18 tmp_file=/tmp/mp_ui.desktop
    19 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
    20 echo -e "\n\n[X-Osso-URI-Action Handler myth] \nMethod=mime_open\nName=medi_ap_mediaplayer_name\nTranslationDomain=mediaplayer" >> $tmp_file
    21 cat $tmp_file > $data_file
    22 echo "FILE DESKTOP UPDATED"
    23 
    24 exit 0