You are not logged in.
Pages: 1
Topic closed
Hi,
I know there are some discussions about this problem over the Internet,
but it's a little bit different and also I want to know what your situations are.
The problem begins with Thunar, which treats .doc and .txt the same. If I ask Thunar to open a .doc file with open-office, Thunar will also open a .txt file with open-office. And vice versa.
Then I tried to open those 2 files by xdg-open, that gives me the same result. So I think the problem is not in Thunar itself, but the mapping between the file type and the default application.
By xdg-mime, I can know the mime type of a .doc file is:
[~:henry 11:33]$ xdg-mime query filetype Desktop/Untitled\ 1.doc
application/vnd.ms-office; charset=binary
And by "/usr/share/applications/writer.desktop", I found the mime types registered by open-office writer are:
application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/msword;application/vnd.ms-word;application/x-doc;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroenabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroenabled.12;
which do not contain "application/vnd.ms-office".
This might be one of the reasons of the problem.
Anyone has the same, or similar problem?
BR,
Henry
Offline
bump
Offline
excuse me,
but... isn't there anyone who has the same issue?
I thought there are plenty people who are using Xfce here...
or did not I explain the issue clearly?
Offline
Have you tried this:
Set default program for doc:
xdg-mime default writer.desktop "application/vnd.ms-office"
Set default program for txt:
xdg-mime default emacs.desktop text/plain
Offline
This may or may not be the same problem as the OP, but I've found there's a problem with kdelibs hogging *.doc associations in Thunar. Removing the following lines from /usr/share/mime/packages/kde.xml prevents it:
<mime-type type="text/plain"> <!-- As discussed on xdg list, *.doc is needed here for disambiguation -->
<glob pattern="*.doc"/>
</mime-type>
(Such a helpful comment they included there...)
Unfortunately, this needs to be done each time kdelibs gets upgraded.
Offline
Coward, you may have not noticed, but the thread you are replying to is close to one year old.
Closing this one under the necro-bumping rule.
ᶘ ᵒᴥᵒᶅ
Offline
Pages: 1
Topic closed