You are not logged in.
Hi
Last full system upgrade I got this warning: "warning: could not get file information for usr/share/mime/application/anki.xml". After the full system upgrade, the file still does not exist.
Can someone help me to solve this issue?
Offline
I got similar warning from time to time for file usr/share/mime/model/materialx.xml from package materialx when it is updated. For some reason pacman when updating this package is unable to extract/copy this file and with anki package probably is the same. Even if I manually unpack this file to desired directory it is deleted during package update. This happens every this package update. I don't see any negative impact, so I leave it without file as it is now, but if you need it then you have to manually unpack your missing file from anki package.
Offline
What does pacman-conf give you?
Online
For me I thing it gives nothing special, sane defaults:
$ pacman-conf
[options]
RootDir = /
DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
HookDir = /etc/pacman.d/hooks/
GPGDir = /etc/pacman.d/gnupg/
LogFile = /var/log/pacman.log
DownloadUser = alpm
HoldPkg = pacman
HoldPkg = glibc
Architecture = x86_64
CheckSpace
ParallelDownloads = 5
CleanMethod = KeepInstalled
SigLevel = PackageRequired
SigLevel = PackageTrustedOnly
SigLevel = DatabaseOptional
SigLevel = DatabaseTrustedOnly
LocalFileSigLevel = PackageOptional
LocalFileSigLevel = PackageTrustedOnly
[core]
Usage = All
Server = http://mirror.moson.org/arch/core/os/x86_64
Server = http://arch.jensgutermuth.de/core/os/x86_64
Server = https://mirror.osbeck.com/archlinux/core/os/x86_64
[extra]
Usage = All
Server = http://mirror.moson.org/arch/extra/os/x86_64
Server = http://arch.jensgutermuth.de/extra/os/x86_64
Server = https://mirror.osbeck.com/archlinux/extra/os/x86_64
[multilib]
Usage = All
Server = http://mirror.moson.org/arch/multilib/os/x86_64
Server = http://arch.jensgutermuth.de/multilib/os/x86_64
Server = https://mirror.osbeck.com/archlinux/multilib/os/x86_64My problem is missing usr/share/mime/model/materialx.xml and warning during materialx package update, but I think that with OP usr/share/mime/application/anki.xml and anki package it's the same (I don't have that one).
Last edited by xerxes_ (2026-03-22 11:50:02)
Offline
If you have it manually extracted, does it get deleted when you run `/usr/bin/update-mime-database /usr/share/mime`?
Online
OK, done that. Now I will have to wait for next materialx package update to find out if it worked.
UPDATE
I checked once more /usr/share/mime/model/ directory and materialx.xml file is gone after runing '/usr/bin/update-mime-database /usr/share/mime'.
Maybe it is not needed in my system?
Last edited by xerxes_ (2026-03-22 12:28:39)
Offline
So that explains why it's disappearing, but I have no idea why update-mime-database would be deleting it, or even if that's expected behavior. You'd have to look into that program and see.
Online
What are the contents of /usr/share/mime/model/materialx.xml ?
Might be an invalid mime description - the other files in /usr/share/mime/model/ remain?
Offline
/usr/share/mime/{all,application,audio,chemical,font,image,inode,message,model,multipart,text,x-content,x-epoc,video}/ are the output directories of update-mime-database that are cleaned before new files are generated. Packages are expected to place a mime data file in /usr/share/mime/packages/. https://specifications.freedesktop.org/ … #s2_layout
Edit:
$ pacman -F usr/share/mime/{all,application,audio,chemical,font,image,inode,message,model,multipart,text,x-content,x-epoc,video}/
usr/share/mime/application/ is owned by extra/anki 25.09.2-6
usr/share/mime/model/ is owned by extra/materialx 1.39.4-3Last edited by loqs (2026-03-22 17:14:28)
Offline
So that would be a packaging bug on both packages, as the PKGBUILD puts them there not the upstream build system. Need to be filed in Arch's gitlab .
Online
This is the output in my PC:
$ pacman -F usr/share/mime/{all,application,audio,chemical,font,image,inode,message,model,multipart,text,x-content,x-epoc,video}/
usr/share/mime/model/ está contenido en extra/materialx 1.38.10-6
$Offline
https://gitlab.archlinux.org/archlinux/ … 1de8a9714f
https://gitlab.archlinux.org/archlinux/ … erialx.xml doesn't fit into packages, https://gitlab.archlinux.org/archlinux/ … rk_items/2 actually suggested the correct solution.
It's worse, this got fixed forth and back ![]()
=> https://gitlab.archlinux.org/archlinux/ … rk_items/5
Last edited by seth (2026-03-26 15:18:27)
Offline
Here
$ pacman -F usr/share/mime/{all,application,audio,chemical,font,image,inode,message,model,multipart,text,x-content,x-epoc,video}/returns nothing, but there are other xml files in subdirectories, except materialx.xml file.
But what about OPs anki.xml?
Last edited by xerxes_ (2026-03-26 17:24:30)
Offline
We'd need to see
pacman -Qikk anki
pacman-conffrom the OP
about the materialx thing, svenstaro would like a working patch - I expect
diff --git a/PKGBUILD b/PKGBUILD
index fb2c49c..7a41c60 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -98,7 +98,7 @@ package() {
mkdir -p ${pkgdir}/usr/share/{applications,mime/model,licenses/$pkgname}
cp ${srcdir}/{materialx-grapheditor.desktop,materialx-view.desktop} ${pkgdir}/usr/share/applications
- install -Dm644 ${srcdir}/materialx.xml ${pkgdir}/usr/share/mime/model/materialx.xml
+ install -Dm644 ${srcdir}/materialx.xml ${pkgdir}/usr/share/mime/packages/materialx.xml
mv ${pkgdir}/usr/{LICENSE,THIRD-PARTY.md} ${pkgdir}/usr/share/licenses/materialx/
# Remove empty dirs
diff --git a/materialx.xml b/materialx.xml
index 89ce770..d6957a2 100644
--- a/materialx.xml
+++ b/materialx.xml
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
-<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="model/materialx">
- <comment>MaterialX Shading Network</comment>
- <icon name="materialx"/>
- <glob-deleteall/>
- <glob pattern="*.MTLX"/>
- <glob pattern="*.mtlx"/>
-</mime-type>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="model/materialx">
+ <comment>MaterialX Shading Network</comment>
+ <icon name="materialx"/>
+ <glob-deleteall/>
+ <glob pattern="*.MTLX"/>
+ <glob pattern="*.mtlx"/>
+ </mime-type>
+</mime-info>to work but am not inclined to build or test that (i don't even know what materialx is and never have used ninja)
If you put
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="model/materialx">
<comment>MaterialX Shading Network</comment>
<icon name="materialx"/>
<glob-deleteall/>
<glob pattern="*.MTLX"/>
<glob pattern="*.mtlx"/>
</mime-type>
</mime-info>into /usr/share/mime/packages/materialx.xml and run
/usr/bin/update-mime-database /usr/share/mime, do things work and you get a fancy new /usr/share/mime/model/materialx ?
Offline
No, this new materialx.xml after running /usr/bin/update-mime-database /usr/share/mime still disappears.
Other xml files from this subdirectory and from others don't have that <mime-info ... </mime-info> outer sections. This may be something different.
I didn't check progs from this package earlier, as it was installed as some dependency, but I check it now 2 of them: MaterialXGraphEditor (opens and works; it's some simple model editor) and MaterialXView - crashes:
$ coredumpctl info /usr/bin/MaterialXView
PID: 2831 (MaterialXView)
UID: 1000 (user)
GID: 1000 (user)
Signal: 4 (ILL)
Timestamp: Thu 2026-03-26 22:57:20 CET (1min 52s ago)
Command Line: MaterialXView
Executable: /usr/bin/MaterialXView
Control Group: /user.slice/user-1000.slice/session-1.scope
Unit: session-1.scope
Slice: user-1000.slice
Session: 1
Owner UID: 1000 (user)
Boot ID: 63644faf7b8942df9f53234d47e7f7ae
Machine ID: 4e6eb13c33544bc2bce3efeaf0d12478
Hostname: home
Storage: none
Message: Process 2831 (MaterialXView) of user 1000 terminated abnormally without generating a coredump.I checked that signal 4 - SIGILL on x86 is Illegal Instruction. I didn't seen it before.
Offline
It disappears from /usr/share/mime/packages/materialx.xml ??
Or did you put it into /usr/share/mime/model/materialx.xml (where it has absolutely no business of being)
Offline
Perhaps also match by file contents in addition to extension which I believe is case insensitive on its second pass):
<magic priority="80">
<match type="string" offset="0:1024" value="<materialx">
<match type="string" offset="1:128" value="version="/>
</match>
</magic>
<root-XML localName="materialx"/>Offline
OK. Now I done it once more but right after I run /usr/bin/update-mime-database /usr/share/mime /usr/share/mime/model/materialx.xml file stays in directory, so it works!
Last edited by xerxes_ (2026-03-26 22:56:10)
Offline
For clarification, you previously put the new materialx.xml in /usr/share/mime/model again but when using /usr/share/mime/packages everything works as expected?
If you're applying loqs' extension (and run update-mime-database to update /usr/share/mime/model/materialx), does mimetype handling still work (and does eg. file or mimetype from perl-file-mimeinfo correctly detect *.mtlx files?
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="model/materialx">
<comment>MaterialX Shading Network</comment>
<icon name="materialx"/>
<magic priority="80">
<match type="string" offset="0:1024" value="<materialx">
<match type="string" offset="1:128" value="version="/>
</match>
</magic>
<root-XML localName="materialx"/>
<glob-deleteall/>
<glob pattern="*.MTLX"/>
<glob pattern="*.mtlx"/>
</mime-type>
</mime-info>Offline
For clarification, you previously put the new materialx.xml in /usr/share/mime/model again but when using /usr/share/mime/packages everything works as expected?
Yes.
When I apply loqs' extension and run update-mime-database:
# update-mime-database -V /usr/share/mime/
Updating MIME database in /usr/share/mime...
Parsing source file /usr/share/mime/packages/application-x-xpraconfig.xml...
...
Parsing source file /usr/share/mime/packages/materialx.xml...
Error in type 'model/materialx' (in /usr/share/mime/packages/materialx.xml): Missing 'namespaceURI' attribute'.
Parsing source file /usr/share/mime/packages/okteta.xml...
...So there is only one error when mangling all xml mime files, previously it wasn't.
And this is content of /usr/share/mime/model/materialx.xml file now:
<?xml version="1.0" encoding="utf-8"?>
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="model/materialx">
<!--Created automatically by update-mime-database. DO NOT EDIT!-->
<comment>MaterialX Shading Network</comment>
<icon name="materialx"/>
</mime-type>Run mimetype from perl-file-mimeinfo on *.mtlx files:
$ mimetype /usr/share/materialx/libraries/targets/*
/usr/share/materialx/libraries/targets/essl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genglsl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genmdl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genmsl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genosl.mtlx: model/materialxLooks like it work. But file says that they are "XML 1.0 document, ASCII text" files.
Last edited by xerxes_ (2026-03-27 13:41:37)
Offline
If anyone would like to make an MR, I'd be happy to merge the fix. ![]()
Offline
With namespaceURI added and set to an empty string:
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="model/materialx">
<comment>MaterialX Shading Network</comment>
<icon name="materialx"/>
<magic priority="80">
<match type="string" offset="0:1024" value="<materialx">
</match>
</magic>
<root-XML localName="materialx" namespaceURI=""/>
<glob-deleteall/>
<glob pattern="*.MTLX"/>
<glob pattern="*.mtlx"/>
</mime-type>
</mime-info>Tested with
$ git clone https://github.com/AcademySoftwareFoundation/MaterialX.git
$ cd MaterialX/
$ find . -name "*.mtlx" -exec xdg-mime query filetype {} \;
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialx
model/materialxOffline
@loqs
For me version of materialx.xml from post #14 in this thread also works:
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="model/materialx">
<comment>MaterialX Shading Network</comment>
<icon name="materialx"/>
<glob-deleteall/>
<glob pattern="*.MTLX"/>
<glob pattern="*.mtlx"/>
</mime-type>
</mime-info>After copying it to /usr/share/mime/packages/ and running 'update-mime-database -V /usr/share/mime' mimetype command also recognize mtlx files:
$ mimetype /usr/share/materialx/libraries/targets/*
/usr/share/materialx/libraries/targets/essl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genglsl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genmdl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genmsl.mtlx: model/materialx
/usr/share/materialx/libraries/targets/genosl.mtlx: model/materialxAnd it don't produce error like in post #20 (probably not much visible, but still):
Error in type 'model/materialx' (in /usr/share/mime/packages/materialx.xml): Missing 'namespaceURI' attribute'.So I don't know what your other/next versions add? Can you describe?
Last edited by xerxes_ (2026-03-27 17:33:12)
Offline
Sorry, forgot to mention that I posted a patch on https://gitlab.archlinux.org/archlinux/ … rk_items/5 (namespaceURI links the doc loqs posted earlier)
Offline
I had such a problem with ardour a while back. Here's the bug report, which also contains the fix: https://bugs.archlinux.org/task/72867
Offline