Add QGIS file types Icons for Linux

This commit is contained in:
Alexandre Neto 2016-05-26 23:50:50 +01:00
parent ed1235d3bf
commit 0eecac1aaf
23 changed files with 83 additions and 3 deletions

View File

@ -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

View File

@ -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.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 718 B

BIN
debian/qgis-mime-icon192x192.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
debian/qgis-mime-icon256x256.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
debian/qgis-mime-icon512x512.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 602 B

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

2
debian/qgis.desktop vendored
View File

@ -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;

3
debian/qgis.mime vendored
View File

@ -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

30
debian/qgis.xml vendored
View File

@ -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,7 +19,7 @@
<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"/>
@ -27,6 +27,32 @@
</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>

8
debian/rules vendored
View File

@ -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 ; \

View File

@ -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>