You are not logged in.

#1 2014-03-13 12:39:04

noxplus
Member
Registered: 2014-03-13
Posts: 1

my lxde/pcmanfm treat msword docx-file like zip-file

when I double-click on a docx-file, my lxde/pcmanfm launch xarchive to open it as zip-file.
I type "$file a.docx", the output is "a.docx: Microsoft Word 2007+"

follow the function-call, I found in the libfm, fm-mime-type.c, fm_mime_type_from_native_file() function, it only pass 4k bytes to g_content_type_guess() without filename.
After I add the filename to the function call, pcmanfm will launch a office-app to open the docx.

I think the probem maybe is config-file for glib2/gio and magic.
but copy the "msooxml" from package magic to ~/.local/share/mime/magic or /usr/share/mime/magic, both no affect.

who can help me?

sorry about my poor english...

Offline

Board footer

Powered by FluxBB