wrong command to view .odt files
Bug #333835 reported by
Nikola Kasabov
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mc (Debian) |
Fix Released
|
Unknown
|
|||
mc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The viewer for OpenOffice documents requires o3totxt to display the files, which no longer exists in the repos. There is new program called "odt2txt".
Related branches
Changed in mc (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
I assume that the issue you're describing is that, when pressing F3 ("View") on an .odt document, instead of viewing its contents in ASCII, you get the odt2txt help.
The solution is a very small change in the file /etc/mc/mc.ext. Currently, lines 497-500 read: .(odt|ott| sxw|stw| ods|ots| sxc|stc| odp|otp| sxi|sti| odg|otg| sxd|std| odb|odf| sxm|odm| sxg)$
# StarOffice 6 and OpenOffice.org formats
regex/\
Open=(ooffice %f &)
View=%view{ascii} odt2txt
Change the last line to:
View=%view{ascii} odt2txt %f
(i.e. simply add the "%f") to fix this. Will submit a patch now...