"edit file.tm" with texmacs installed destroys file.tm

Bug #270988 reported by David Hugh-Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
texmacs (Ubuntu)
Triaged
Low
Daniel T Chen

Bug Description

Binary package hint: texmacs

To reproduce, copy a texmacs .tm file. Then from the command line run "edit file.tm".

Result:
1. texmacs opens empty, without loading file.tm
2. file.tm's contents are silently overwritten with the words:
TeXmacs] With linked TrueType support

Expected:
1. open file.tm in texmacs, do not destroy it!

Fix:
make the following change to /usr/lib/mime/packages/texmacs: replace "edit=/usr/bin/texmacs" with "edit=/usr/bin/texmacs %s". Presumably the source package is buillding this incorrectly. (If you do this as a workaround, be sure to run "sudo update-mime" afterwards.)

Revision history for this message
Apteryx (maxco) wrote :

I can confirm that Texmacs cannot open a file from the MIME information and deletes its content.
Reproduced on Ubuntu 8.04 Hardy Heron (with all updates).

To open a file, one is obliged to open first Texmacs and then go to "File -> Load"

I can also confirm that the workaround works (thanks, David!) Now I can right click the file, and chose GNU Texmacs to open it.

Daniel T Chen (crimsun)
Changed in texmacs:
assignee: nobody → crimsun
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.