[arch-general] Content of new text file

Squall Lionheart headmastersquall at gmail.com
Thu Jul 14 12:21:30 EDT 2011


On Thu, Jul 14, 2011 at 4:19 AM, Paul Gideon Dann <pdgiddie at gmail.com>wrote:

> On Wednesday 13 Jul 2011 15:00:37 Squall Lionheart wrote:
> > When using Dolphin in KDE4 to *Create New > Text File...* the new file is
> > not empty, it contains a space and a newline character.
>
> I wonder if that's to do with MIME types?  With a space and a newline, the
> file
> is detected by "file" as ASCII text rather than "empty".  A single newline
> is
> detected as "very short file (no magic)", so probably the space-newline
> combo
> is the shortest file that can be automatically detected as text.
>
> It might be handy to have the option to "Create New => Empty File" though,
> although I don't think I've ever needed to do this outside a terminal
> myself.
>
> Paul
>


I tried what Pete said and that fixed it.  The template file is located at
/usr/share/templates/.source/TextFile.txt and clearing the contents makes
new files appear empty as expected.

Thank you
Squall


More information about the arch-general mailing list