Bug 2850

Summary: Shared-mime-info specification is not followed
Product: Claws Mail (GTK 2) Reporter: Joel Klinghed <the_jk>
Component: OtherAssignee: users
Status: NEW ---    
Severity: enhancement    
Priority: P3    
Version: 3.9.0   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch none

Description Joel Klinghed 2013-01-04 20:00:09 UTC
Created attachment 1216 [details]
Patch

The current implementation in src/procmime.c for reading the shared-mime-info glob files only look in one single directory, a hardcoded default (/usr/share on linux).

It should look in all of $XDG_DATA_HOME:$XDG_DATA_DIRS and fallback to defaults $HOME/.local/share and /usr/share if those are not set combining the result as it goes.

I attach patch that tries to do this.