dleidert / chemical-mime

Chemical MIME type support Linux desktops

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chemical-mime claims content-type chemical/x-turbomole-vibrational for all files with three character filenames

kaindl opened this issue · comments

content-type chemical/x-turbomole-vibrational is assigned to all non-empty files, which have a filename containing only three characters:

<glob pattern="???"/>

% touch abc
% echo test > bcd
% cp /usr/share/wallpapers/Autumn/contents/screenshot.jpg cde
% file abc
abc: empty
% file bcd
bcd: ASCII text
% file cde
cde: JPEG image data, JFIF standard 1.01, resolution (DPI), density 299x299, segment length 16, progressive, precision 8, 400x250, components 3
% gio info -a 'standard::content-type' abc
Adresse: file:///tmp/vibration/abc
Attribute:
  standard::content-type: text/plain
% gio info -a 'standard::content-type' bcd
Adresse: file:///tmp/vibration/bcd
Attribute:
  standard::content-type: chemical/x-turbomole-vibrational
% gio info -a 'standard::content-type' cde
Adresse: file:///tmp/vibration/cde
Attribute:
  standard::content-type: chemical/x-turbomole-vibrational

This causes unexpected behavior, e.g. here:
fwupd/fwupd#1631