Install mimetype definitions for .gitignore & .gitattributes

Authored by kossebau on Nov 10 2017, 4:22 PM.



Currently kdevelop shows an "unknown" filetype in the Projects
manager, not perfect.

Given we already install a git icon, a simple fix is to also install some
mimetype definition. Ideally should be somewhere upstream, but until it has
been found out where and how, let's start for oursselved.

Diff Detail

R32 KDevelop
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.Nov 10 2017, 4:22 PM
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptNov 10 2017, 4:22 PM

Making a better appearance with it:

Are you sure it's the right way to go? Last time I tried to do something like this, I was yelled at ^^'.

Summoning @ltoscano

It's the way I have done that elsewhere? :) BTW, related patch is D8728, which tries to install more mimetype definitions from a better place.

The criteria is easy: generic MIME types should go to shared-mime-info first; we can probably define them as stop-gap in the meantime, but we should submit them first to not forget.

The two files here can be probably considered "generic".

apol added a comment.Nov 10 2017, 4:56 PM

Where would we submit them?

In D8746#166247, @apol wrote:

Where would we submit them?

They are submitted following the rules at (done that before).

I also plan to do this later, but before first need to do a more complete research to find what mimetype names are in use already, and what a proper mimetype name would be. That takes some time (including getting the stuff into shared-mime-info an then reaching installations). That's why I proposed this here first as intermediate solution.

apol accepted this revision.Nov 11 2017, 12:47 AM
This revision is now accepted and ready to land.Nov 11 2017, 12:47 AM
This revision was automatically updated to reflect the committed changes.