Skip to content

Commit

Permalink
fixed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
betolink committed Jan 16, 2024
1 parent c111e8c commit a3d8639
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 2 deletions.
213 changes: 213 additions & 0 deletions ci/qgis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
<?xml version="1.0"?>
<!-- From: https://raw.githubusercontent.com/qgis/QGIS/ltr-3_28/debian/qgis.xml -->
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>

<mime-type type="application/x-qgis-project">
<comment>QGIS Project</comment>
<comment xml:lang="de">QGIS-Projekt</comment>
<sub-class-of type="application/xml"/>
<alias type="application/x-qgis"/>
<icon name="qgis-qgs"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis"/>
</magic>
<glob pattern="*.qgs"/>
</mime-type>

<mime-type type="application/x-qgis-project-container">
<comment>QGIS Project</comment>
<comment xml:lang="de">QGIS-Projekt</comment>
<sub-class-of type="application/zip"/>
<alias type="application/x-qgis"/>
<icon name="qgis-qgs"/>
<glob pattern="*.qgz"/>
</mime-type>

<mime-type type="application/x-qgis-layer-settings">
<comment>QGIS layer settings</comment>
<comment xml:lang="de">QGIS-Layereinstellungen</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-qml"/>
<magic priority="80">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis"/>
</magic>
<glob pattern="*.qml"/>
</mime-type>

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

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

<mime-type type="application/x-esri-shape">
<comment>ESRI shape file</comment>
<comment xml:lang="de">ESRI-Shapedatei</comment>
<icon name="qgis-mime"/>
<magic priority="100">
<match type="big32" offset="0" value="9994">
<match type="big32" offset="4" value="0">
<match type="big32" offset="8" value="0">
<match type="big32" offset="12" value="0">
<match type="big32" offset="16" value="0">
<match type="big32" offset="20" value="0">
<match type="big32" offset="28" value="1000"/>
</match>
</match>
</match>
</match>
</match>
</match>
</magic>
<glob pattern="*.shp"/>
<glob pattern="*.shx"/>
</mime-type>

<mime-type type="application/x-esri-crs">
<comment>ESRI coordinate reference system</comment>
<comment xml:lang="de">ESRI-Koordinatenreferenzsystem</comment>
<icon name="qgis-mime"/>
<magic>
<match type="string" offset="0" value="GEOGCS["/>
<match type="string" offset="0" value="PROJCS["/>
<match type="string" offset="0" value="LOCAL_CS["/>
</magic>
<glob pattern="*.prj"/>
</mime-type>

<mime-type type="image/tiff">
<comment>TIFF raster data</comment>
<comment xml:lang="de">TIFF-Rasterdaten</comment>
<icon name="qgis-mime"/>
<magic priority="50">
<match type="string" offset="0" value="MM">
<match type="little16" offset="2" value="42"/>
</match>
<match type="string" offset="0" value="MM">
<match type="big16" offset="2" value="42"/>
</match>
</magic>
<glob pattern="*.tiff"/>
<glob pattern="*.tif"/>
</mime-type>

<mime-type type="image/jpeg">
<comment>JPEG raster data</comment>
<comment xml:lang="de">JPEG-Rasterdaten</comment>
<icon name="qgis-mime"/>
<magic priority="50">
<match type="big16" offset="0" value="65496"/>
</magic>
<glob pattern="*.jpeg"/>
<glob pattern="*.jpg"/>
</mime-type>

<mime-type type="image/jp2">
<comment>JPEG2000 raster data</comment>
<comment xml:lang="de">JPEG2000-Rasterdaten</comment>
<icon name="qgis-mime"/>
<magic priority="50">
<match type="little32" offset="0" value="12">
<match type="string" offset="8" value="jP">
<match type="byte" offset="10" value="32">
<match type="byte" offset="11" value="32">
<match type="byte" offset="12" value="13">
<match type="byte" offset="13" value="10">
<match type="byte" offset="14" value="135">
<match type="byte" offset="13" value="10"/>
</match>
</match>
</match>
</match>
</match>
</match>
</match>
</magic>
<glob pattern="*.jp2"/>
<glob pattern="*.j2k"/>
</mime-type>

<mime-type type="application/x-raster-aig">
<comment>AIG raster data</comment>
<comment xml:lang="de">AIG-Rasterdaten</comment>
<icon name="qgis-mime"/>
<glob pattern="*.aig"/>
</mime-type>

<mime-type type="application/x-raster-ecw">
<comment>ECW raster data</comment>
<comment xml:lang="de">ECW-Rasterdaten</comment>
<icon name="qgis-mime"/>
<glob pattern="*.ecw"/>
</mime-type>

<mime-type type="application/x-raster-mrsid">
<comment>MrSID raster data</comment>
<comment xml:lang="de">MrSID-Rasterdaten</comment>
<icon name="qgis-mime"/>
<glob pattern="*.sid"/>
</mime-type>

<mime-type type="application/x-mapinfo-mif">
<comment>MapInfo file</comment>
<comment xml:lang="de">MapInfo-Datei</comment>
<icon name="qgis-mime"/>
<magic priority="51">
<match type="string" offset="0" value="VERSION">
<match type="string" offset="0:512" value="COLUMNS"/>
<match type="string" offset="0:512" value="DATA">
</match>
</match>
</magic>
<glob weight="60" pattern="*.mif"/>
</mime-type>

<!-- .mif is just not good enough -->
<mime-type type="application/x-adobe-mif">
<alias type="application/x-mif"/>
<comment>Adobe FrameMaker MIF file</comment>
<magic priority="100">
<match type="string" offset="0" value="&lt;MIFFile"/>
</magic>
<glob weight="51" pattern="*.mif"/>
</mime-type>

<mime-type type="application/vnd.google-earth.kml+xml">
<comment>Keyhole Markup Language data</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-mime"/>
<glob pattern="*.kml"/>
</mime-type>

<mime-type type="application/vnd.google-earth.kmz">
<comment>Zipped Keyhole Markup Language data</comment>
<sub-class-of type="application/zip"/>
<icon name="qgis-mime"/>
<glob pattern="*.kmz"/>
</mime-type>

<mime-type type="application/geopackage+sqlite3">
<comment>GeoPackage data</comment>
<sub-class-of type="application/vnd.sqlite3"/>
<icon name="qgis-mime"/>
<glob pattern="*.gpkg"/>
</mime-type>

</mime-info>

4 changes: 2 additions & 2 deletions ci/start
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ APPLICATIONS_DIR="${HOME}/.local/share/applications"
DESKTOP_DIR="${HOME}/Desktop"
mkdir -p "${APPLICATIONS_DIR}"
mkdir -p "${DESKTOP_DIR}"
for desktop_file_path in ${REPO_DIR}/*.desktop; do
for desktop_file_path in ${REPO_DIR}/ci/*.desktop; do
cp "${desktop_file_path}" "${APPLICATIONS_DIR}/."

# Symlink application to desktop
Expand All @@ -27,7 +27,7 @@ update-desktop-database "${APPLICATIONS_DIR}"
MIME_DIR="${HOME}/.local/share/mime"
MIME_PACKAGES_DIR="${MIME_DIR}/packages"
mkdir -p "${MIME_PACKAGES_DIR}"
for mime_file_path in ${REPO_DIR}/mime/*.xml; do
for mime_file_path in ${REPO_DIR}/ci/*.xml; do
cp "${mime_file_path}" "${MIME_PACKAGES_DIR}/."
done
update-mime-database "${MIME_DIR}"
Expand Down

0 comments on commit a3d8639

Please sign in to comment.