You are not logged in.

#1 2009-07-27 17:07:56

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

[SOLVED] Thunar sees both '.doc' and '.txt' as plain text files...

Hello,

I'm using Thunar as my file manager. However, it sees both '.doc' and '.txt' files as "plain text files".

This means that I can't make the .doc files open with OpenOffice and the .txt files open with a plaintext editor, because whenever I change the program association of one, the other changes.

How to fix that? (looks like a MIME-type issue).

Thanks.

Last edited by Renan Birck (2009-08-14 15:57:05)

Offline

#2 2009-07-27 19:38:25

matthewbauer
Member
From: /usa/ks
Registered: 2009-07-20
Posts: 86

Re: [SOLVED] Thunar sees both '.doc' and '.txt' as plain text files...

Does anyone know where the config file is stored for file associations? I don't know if that is system-wide or Thunar specific, but that will probably help you.


Libertarian Arch Linux User

Offline

#3 2009-07-27 20:29:48

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Thunar sees both '.doc' and '.txt' as plain text files...


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2009-07-27 20:47:57

matthewbauer
Member
From: /usa/ks
Registered: 2009-07-20
Posts: 86

Re: [SOLVED] Thunar sees both '.doc' and '.txt' as plain text files...

Yes, but $XDG_CACHE_HOME/Thunar/metafile.tdb is a database. I guess you can edit it with tdbtool. But it's not working well for me.

I sure wish Thunar would just store it in a plain old text file.


Libertarian Arch Linux User

Offline

#5 2009-08-13 21:18:09

DaVince
Member
Registered: 2009-08-13
Posts: 1

Re: [SOLVED] Thunar sees both '.doc' and '.txt' as plain text files...

Open /usr/share/mime/globs and /usr/share/mime/globs2, find the lines that assign *.doc to the plaintext mime type, and remove them. Restart Thunar, problem solved.

Offline

#6 2009-08-14 15:56:45

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

Re: [SOLVED] Thunar sees both '.doc' and '.txt' as plain text files...

DaVince wrote:

Open /usr/share/mime/globs and /usr/share/mime/globs2, find the lines that assign *.doc to the plaintext mime type, and remove them. Restart Thunar, problem solved.

Finally it works. Thanks!

Offline

Board footer

Powered by FluxBB