You are not logged in.
Pages: 1
Thunar 1.6.11
This is some silliness - it must be some kind of heuristics
A text file without any filename extensions containing specs and links about a 2006 iMac will be typed "Monkey's audio".
I tried creating new document in Thunar - saved it (no extension) with some string "this is just some text" and it indicates it is in fact a text file.
Then if I paste in the content of the file with the specs and links it changes to type Monkey's audio.
I can tell it to use mousepad to open it, and that directive is persistent.
Offline
Developer doesn't know the difference between a codec for musical delight and an overpriced computer that's white?
Sorry, I couldn't resist. Snowed in here and it's 3°F (-16.1111°C) here - and very, very windy.
For clarification's sake, when you saved the modified test file, you kept its original name and only the contents of the file have changed?
Just curious here, but is this a "stock" text file (or, I suppose, are the contents)? In other words, was this something that was originally published by Apple and unmodified from its original state, or are the contents coming from a different source (random author, your own work, et cetera)?
You might try copying the text (only) and pasting it into yet another file, and then doing the same with the Internet links (only). And, if you wish to be really thorough, open your test file and edit (remove) the iMac-related contents and re-save it - does it then still get treated as if it is an .APE file?
EDIT: I couldn't remember the proper filename suffix for Monkey's Audio, so I typed that (Monkey's Audio) into a search engine. The very first result is www.monkeysaudio.com/ - and the search engine is giving me a warning that "This site may be hacked." Coincidence? Or... not, lol?
I have, in the past, wondered just how the file manager / system in general determines how files that haven't been named with proper filename suffixes shall be treated.
Regards,
MDM
Last edited by MountainDewManiac (2018-01-17 16:09:49)
Offline
Just to add, it's not Thunar that's making that determination, probably libmagic. To verify, run:
file 2006iMacCore2Duo
...because most probably the header of the file somehow matches the template for that file type. Just add a space before the first character and it should report back as a text file again.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
@ToZ - yep. Just adding a space before the first character made it report back as a text file again.
john@OptiPlex-780:~/DATA/iMac$ file 2006iMacCore2Duo
2006iMacCore2Duo: Monkey's Audio compressed format version 21327
john@OptiPlex-780:~/DATA/iMac$ file 2006iMacCore2Duo
2006iMacCore2Duo: ASCII text, with very long lines
@MDM - the extension for Monkey's audio is ape.
Offline
Pages: 1
[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 534.55 KiB (Peak: 535.4 KiB) ]