Reply to topic

Set mimetypes by application

User avatar vayu
Registered Member
Posts
70
Karma
0
OS

Set mimetypes by application

Thu Jun 13, 2013 11:31 pm
I'm frustrated by the way applications do their own thing with regards to mimetypes. For example I installed Bluefish and it took over .php, .html, .css and who knows what else. If I install a graphics program or utility it will invariably alter the mimetypes I have intentionally set up for some types of images to open in Gimp, others in Gwenview, some in Inkscape.

I have not found a way to look at and change all the mimetypes a specific application has accociated with it. Currently I have to know what mimetypes have been changed and go type by type to fix them.

Can someone direct me to how to view and change all the mimetypes associated with a given application?
User avatar Wizard
Registered Member
Posts
99
Karma
0
OS

Re: Set mimetypes by application

Fri Jun 14, 2013 10:11 am
Well, this is a mess indeed. From my experiences the most efficient way of ordering this is to start from filemanager's "Open with" option and setting default app from there. This may be annoying, but I bet you quickly sort out all your common filetypes.
User avatar bcooksley
Administrator
Posts
18582
Karma
83
OS

Re: Set mimetypes by application  Topic is solved

Sat Jun 15, 2013 10:00 am
To do this, locate the *.desktop file for the application and open it. Then look for the key "MimeType" - these are the mimetypes associated with the application.

Note that some applications, such as Okular use multiple *.desktop files (one for each plugin) for various reasons, so you will need to find each *.desktop file in turn in this case.


System Settings and Device Actions KCM maintainer
Image
User avatar vayu
Registered Member
Posts
70
Karma
0
OS

Re: Set mimetypes by application

Sat Jun 15, 2013 11:59 pm
bcooksley wrote:To do this, locate the *.desktop file for the application and open it. Then look for the key "MimeType" - these are the mimetypes associated with the application.

Note that some applications, such as Okular use multiple *.desktop files (one for each plugin) for various reasons, so you will need to find each *.desktop file in turn in this case.


Thank you!

 
Reply to topic

Bookmarks



Who is online

Registered users: alake, Alexa [Bot], Baidu [Spider], Bing [Bot], blue_bullet, chicken2jail, claydoh, colomar, Exabot [Bot], garthecho, ghevan, Google [Bot], google01103, Hans, inhiway, kainz.a, koriun, La Ninje, lazyit, Majestic-12 [Bot], mmistretta, nezumi, pedrorodriguez, private_lock, robinh, scummos, Tuukka, urgo, Uri_Herrera, wolfi323, Yahoo [Bot]