Bug 2850 - Shared-mime-info specification is not followed
Summary: Shared-mime-info specification is not followed
Status: NEW
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.9.0
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2013-01-04 20:00 UTC by Joel Klinghed
Modified: 2013-01-04 20:44 UTC (History)
0 users

See Also:


Attachments
Patch (3.69 KB, application/octet-stream)
2013-01-04 20:00 UTC, Joel Klinghed
no flags Details

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.

Note You need to log in before you can comment on or make changes to this bug.