PDA

View Full Version : [xubuntu] 16.04: Can't override mime type with user definitions.



Twilight in Zero
May 2nd, 2016, 05:10 PM
Hi there. I have a set of user-defined mimetypes for Doom PWADs that are used to automatically launch them with the appropriate IWAD. I have d2.wad for Doom 2, her.wad for Heretic, fd1.wad for FreeDoom 1, etc etc etc. This was working just fine in 15.10, but is no longer working in 16.04. It seems there is a system-wide definition for Doom WADs now, and my user definition no longer has precedence.

Here is my ~/.local/share/mime/packages/x-application-wad.xml:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-wad">
<comment>Doom Engine WAD</comment>
<icon name="application-x-wad"/>
<glob-deleteall/>
<glob pattern="*.wad"/>
</mime-type>
<mime-type type="application/x-doomu-pwad">
<comment>Ultimate Doom PWAD</comment>
<icon name="application-x-wad"/>
<glob-deleteall/>
<glob pattern="*.du.wad"/>
</mime-type>
<mime-type type="application/x-doom2-pwad">
<comment>Doom 2 PWAD</comment>
<icon name="application-x-wad"/>
<glob-deleteall/>
<glob pattern="*.d2.wad"/>
</mime-type>
<mime-type type="application/x-tnt-pwad">
<comment>TNT: Evilution PWAD</comment>
<icon name="application-x-wad"/>
<glob-deleteall/>
<glob pattern="*.tnt.wad"/>
</mime-type>
<mime-type type="application/x-plutonia-pwad">
<comment>Plutonia Experiment PWAD</comment>
<icon name="application-x-wad"/>
<glob-deleteall/>
<glob pattern="*.pe.wad"/>
</mime-type>
<mime-type type="application/x-freedoom1-pwad">
<comment>FreeDoom Phase 1 PWAD</comment>
<icon name="application-x-wad"/>
<glob-deleteall/>
<glob pattern="*.fd1.wad"/>
</mime-type>
<mime-type type="application/x-freedoom2-pwad">
<comment>FreeDoom Phase 2 PWAD</comment>
<icon name="application-x-wad"/>
<glob-deleteall/>
<glob pattern="*.fd2.wad"/>
</mime-type>
<mime-type type="application/x-heretic-pwad">
<comment>Heretic PWAD</comment>
<icon name="application-x-wad"/>
<glob-deleteall/>
<glob pattern="*.her.wad"/>
</mime-type>
<mime-type type="application/x-hexen-pwad">
<comment>Hexen PWAD</comment>
<icon name="application-x-wad"/>
<glob-deleteall/>
<glob pattern="*.hex.wad"/>
</mime-type>
</mime-info>

Can anyone help me get this working again?

rsarson
September 26th, 2016, 09:19 PM
hi! same issue. did you find a fix yet?

oldos2er
September 26th, 2016, 11:15 PM
You should probably start a new thread; Twilight in Zero hasn't returned to the forum since posting this.