[kde] [Bug 474190] text files starting with PACKAGE* get the mime type application/x-pak instead of text/plain

bug-control at kde.org bug-control at kde.org
Wed Sep 20 17:12:47 BST 2023


https://bugs.kde.org/show_bug.cgi?id=474190

--- Comment #4 from Werner Sembach [TUXEDO] <wse at tuxedocomputers.com> ---
(In reply to tagwerk19 from comment #3)
> (In reply to Werner Sembach [TUXEDO] from comment #0)
> > STEPS TO REPRODUCE
> > echo "PACKAGEloremipsum" > foo
> > 
> > OBSERVED RESULT
> > foo has the mime type application/x-pak
> That comes from the following entry in:
> 
>     /usr/share/mime/packages/freedesktop.org.xml
> 
>    <mime-type type="application/x-pak">
>      <comment>PAK archive</comment>
>       ...
>      <comment xml:lang="en_GB">PAK archive</comment>
>       ...
>      <generic-icon name="package-x-generic"/>
>      <magic priority="80">
>        <match offset="0" type="string" value="PACK"/>
>      </magic>
>      <glob pattern="*.pak"/>
>    </mime-type>
> 
> Looks like the "PAK Archive" format was something in DOS back in the 1990's.
> Can give you a German Wiki article (seemingly no English equivalent):
> 
>     https://de.wikipedia.org/wiki/PAK_(Dateiformat)

A propriatary ancient format with a far to generic magic value :/

I guess if someone sees this and still has such a file lying around let me
know, maybe there are additional magic values that can be used.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list