Skip to content
Snippets Groups Projects

Fall back to fast content type if regular is unavilable in file attributes

Merged sfan5 requested to merge (removed):master into master

This fixes Thunar misrecognizing m3u files on an sftp mount as application/octet-stream on my system.

(in case its relevant: Arch Linux with glib 2.64.5-1 and shared-mime-info 2.0+1+g6bf9e4f-2)

Demonstration of (un)availability of content type attributes:

$ gio info /run/user/1000/gvfs/sftp:host=nas.lan/tmp/test.m3u | grep content-
  standard::fast-content-type: audio/x-mpegurl
$ gio info /tmp/test.m3u | grep content-
  standard::content-type: audio/x-mpegurl
  standard::fast-content-type: audio/x-mpegurl

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading