Hallo zusammen,
ich suche den Fehler bei der Zuordnung des Mime-Typ für Fish-Skripte wenn sie keine Dateinamenerweiterung haben.
x-fishscript.xml um <magic> ergänzt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <?xml version="1.0" encoding="utf-8"?> <mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-fishscript"> <!--Created automatically by update-mime-database. DO NOT EDIT!--> <comment>Fish shell script</comment> <comment xml:lang="uk">скрипт оболонки fish</comment> <comment xml:lang="sv">Fish-skalskript</comment> <comment xml:lang="ru">Сценарий fish shell</comment> <comment xml:lang="pl">Skrypt powłoki Fish</comment> <comment xml:lang="it">Script shell Fish</comment> <comment xml:lang="eu">Fish shell scripta</comment> <comment xml:lang="es">secuencia de órdenes de consola Fish</comment> <comment xml:lang="de">Fish-Shell-Skript</comment> <comment xml:lang="be">скрыпт Fish shell</comment> <sub-class-of type="application/x-executable"/> <sub-class-of type="text/plain"/> <alias type="text/x-fish"/> <generic-icon name="text-x-script"/> <glob pattern="*.fish"/> <magic priority="50"> <match value="#!/bin/fish" type="string" offset="0"/> <match value="#!/usr/bin/fish" type="string" offset="0"/> </magic> </mime-type> |
... ausgeführt
1 | sudo xdg-mime install --mode system ./x-fishscript.xml |
Mime-Typ der Fish-Skripte ohne Dateinamenerweiterung bleibt bei text/x-devicetree-source. Was ist mein Fehler?