Skip to content
Permalink
Browse files

Add QGIS file types Icons for Linux

  • Loading branch information
SrNetoChan committed May 26, 2016
1 parent ed1235d commit 0eecac1aafa39af2d7a0a27ab0a76e09b8139c7a
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-qgis-composer-template
Hidden=false
Comment=QGIS composer template
Icon=qgis-mime
Patterns=*.qpt;
Name[en_US]=x-qgis-composer-template.desktop
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-qgis-layer-definition
Hidden=false
Comment=QGIS layer definition
Icon=qgis-mime
Patterns=*.qlr;
Name[en_US]=x-qgis-layer-definition.desktop
Binary file not shown.
BIN -711 Bytes (50%) debian/qgis-mime-icon16x16.png
Binary file not shown.
Binary file not shown.
BIN -635 Bytes (61%) debian/qgis-mime-icon22x22.png
Binary file not shown.
BIN -658 Bytes (63%) debian/qgis-mime-icon24x24.png
Binary file not shown.
Binary file not shown.
BIN -959 Bytes (63%) debian/qgis-mime-icon32x32.png
Binary file not shown.
BIN -1.14 KB (61%) debian/qgis-mime-icon36x36.png
Binary file not shown.
BIN -1.42 KB (61%) debian/qgis-mime-icon42x42.png
Binary file not shown.
BIN -1.79 KB (59%) debian/qgis-mime-icon48x48.png
Binary file not shown.
Binary file not shown.
BIN -3.06 KB (54%) debian/qgis-mime-icon64x64.png
Binary file not shown.
BIN -3.67 KB (52%) debian/qgis-mime-icon72x72.png
Binary file not shown.
BIN -4.48 KB (50%) debian/qgis-mime-icon80x80.png
Binary file not shown.
BIN -249 Bytes (59%) debian/qgis-mime-icon8x8.png
Binary file not shown.
BIN -6.04 KB (47%) debian/qgis-mime-icon96x96.png
Binary file not shown.
@@ -53,5 +53,5 @@ Exec=/usr/bin/qgis %F
Terminal=false
StartupNotify=false
Categories=Qt;Education;Science;Geography;
MimeType=application/x-qgis-project;image/tiff;image/jpeg;image/jp2;application/x-raster-aig;application/x-raster-ecw;application/x-raster-mrsid;application/x-mapinfo-mif;application/x-esri-shape;
MimeType=application/x-qgis-project;application/x-qgis-layer-settings;application/x-qgis-layer-definition;application/x-qgis-composer-template;image/tiff;image/jpeg;image/jp2;application/x-raster-aig;application/x-raster-ecw;application/x-raster-mrsid;application/x-mapinfo-mif;application/x-esri-shape;
Keywords=map;globe;postgis;wms;wfs;ogc;osgeo;
@@ -7,3 +7,6 @@ application/x-raster-mrsid; qgis '%s'; description="MrSID raster data"; test=tes
application/x-raster-mif; qgis '%s'; description="MapInfo file"; test=test -n "$DISPLAY"; nametemplate=%s.mif; priority=2
application/x-esri-shape; qgis '%s'; description="ESRI shape file"; test=test -n "$DISPLAY"; nametemplate=%s.shp; priority=2
application/x-qgis-project; qgis '%s'; description="QGIS Project"; test=test -n "$DISPLAY"; nametemplate=%s.qgs
application/x-qgis-layer-settings; qgis '%s'; description="QGIS Layer Settings"; test=test -n "$DISPLAY"; nametemplate=%s.qml
application/x-qgis-layer-definition; qgis '%s'; description="QGIS Layer Definition"; test=test -n "$DISPLAY"; nametemplate=%s.qlr
application/x-qgis-composer-template; qgis '%s'; description="QGIS Composer Template"; test=test -n "$DISPLAY"; nametemplate=%s.qpt
@@ -6,7 +6,7 @@
<comment xml:lang="de">QGIS-Projekt</comment>
<sub-class-of type="application/xml"/>
<alias type="application/x-qgis"/>
<icon name="qgis-mime"/>
<icon name="qgis-qgs"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis projectname"/>
@@ -19,14 +19,40 @@
<comment>QGIS layer settings</comment>
<comment xml:lang="de">QGIS Layer Einstellungen</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-mime"/>
<icon name="qgis-qml"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qml"/>
</mime-type>

<mime-type type="application/x-qgis-layer-definition">
<comment>QGIS layer definition</comment>
<comment xml:lang="de">QGIS Layer definition</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-qlr"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qlr"/>
</mime-type>

<mime-type type="application/x-qgis-composer-template">
<comment>QGIS composer template</comment>
<comment xml:lang="de">QGIS Komponist Vorlage</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-qpt"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qpt"/>
</mime-type>

<mime-type type="application/x-esri-shape">
<comment>ESRI shape file</comment>
@@ -303,6 +303,14 @@ override_dh_auto_install:
install -o root -g root -m 644 $(CURDIR)/debian/qgis-mime-icon$${size}.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/$${size}/mimetypes/qgis-mime.png ; \
done

# Install QGIS file formats icons
for file_type in qgs qlr qml qpt; do \
for size in 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512; do \
install -o root -g root -d $(CURDIR)/debian/tmp/usr/share/icons/hicolor/$${size}/mimetypes ; \
install -o root -g root -m 644 $(CURDIR)/debian/qgis-$${file_type}-mime$${size}.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/$${size}/mimetypes/qgis-qgs.png ; \
done
done

# Install application icon
for size in 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512; do \
install -o root -g root -d $(CURDIR)/debian/tmp/usr/share/icons/hicolor/$${size}/apps ; \
@@ -25,4 +25,31 @@
</magic>
<glob pattern="*.qml"/>
</mime-type>

<mime-type type="application/x-qgis-layer-definition">
<comment>QGIS layer definition</comment>
<comment xml:lang="de">QGIS Layer definition</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-qlr"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qlr"/>
</mime-type>

<mime-type type="application/x-qgis-composer-template">
<comment>QGIS composer template</comment>
<comment xml:lang="de">QGIS Komponist Vorlage</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-qpt"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qpt"/>
</mime-type>

</mime-info>

0 comments on commit 0eecac1

Please sign in to comment.
You can’t perform that action at this time.