source: air-manager/trunk/fuentes/debian/air-installer.postinst @ 7370

Last change on this file since 7370 was 7370, checked in by Juanma, 18 months ago

add icon for mimetype

  • Property svn:executable set to *
File size: 572 bytes
Line 
1#!/bin/bash
2
3APP="air-installer"
4EXT="air"
5
6# Create mime xml
7echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
8<mime-info xmlns=\"http://www.freedesktop.org/standards/shared-mime-info\">
9    <mime-type type=\"application/x-$APP\">
10        <comment>Install air app</comment>
11        <icon name=\"air-installer\"/>
12        <glob pattern=\"*.$EXT\"/>
13    </mime-type>
14</mime-info>" > /usr/share/mime/application/application-x-$APP.xml
15
16#update databases for both application and mime
17#update-desktop-database /usr/share/applications
18update-mime-database    /usr/share/mime
19
Note: See TracBrowser for help on using the repository browser.