Skip to content

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

@kaindl

Description

@kaindl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions