Page 1 of 1

Re: *.txt files

Posted: Fri Sep 21, 2007 11:08 am
by scorp123
sprocket_dk wrote:Hej I can't seem to open txt files. When I double click on a txt file nothing happens. Am I missing some program here?
That's weird. Are you sure those files aren't empty? e.g. do they have a file length? Maybe it's just the file associations that got messed up? Do you use KDE or GNOME?

Posted: Sun Sep 23, 2007 12:12 pm
by Husse
Files with a .txt file association tend to be treated as executable text files but certainly something should happen....

Posted: Sun Sep 23, 2007 12:43 pm
by scorp123
Husse wrote:Files with a .txt file association tend to be treated as executable text files
Huh??? On which OS and from which parallel Universe?

Posted: Sun Sep 23, 2007 3:10 pm
by linuxviolin
I have no problem to open the .txt files with the text editor...:wink: your problems are surprising, or I misunderstand you (that is always possible)

Posted: Sun Sep 23, 2007 4:04 pm
by Husse
scorp123 wrote:
Husse wrote:
Files with a .txt file association tend to be treated as executable text files
Huh??? On which OS and from which parallel Universe?
:):)
Most something.txt on my Mint, but much something.txt comes from my ntfs partition so that may be it...

Posted: Sun Sep 23, 2007 4:10 pm
by scorp123
linuxviolin wrote: your problems are surprising, or I misunderstand you (that is always possible)
Pas de f***ing kidding, I had the very same thought :lol:

Posted: Sun Sep 23, 2007 4:13 pm
by scorp123
Husse wrote: something.txt comes from my ntfs partition so that may be it...
Yes, because there those files (and everything else) get the execute bit set unless you set the "noexec" parameter or use a proper Linux filesystem which is able to report the correct bit settings (rwx ..) to the system. This has not really something to do with the *.txt files being really 'executable' but rather how Linux is interpreting stuff from non-Linux filesystems.

Posted: Mon Sep 24, 2007 6:38 am
by Husse
Yaeh - that's it, but I've got some .txt files not coming from ntfs being like that too....
So much so that it's been annoying - but normal .txt don't - just checked
It was so much that I was beginning to think it was something with the .txt - and you don't use file extensions much in Linux....

Posted: Mon Sep 24, 2007 7:00 am
by scorp123
Husse wrote: Yaeh - that's it, but I've got some .txt files not coming from ntfs being like that too....
Maybe they originate from Windows or some other non-UNIX-like OS? Could be then that somehow that execute bit got preserved.
Husse wrote: So much so that it's been annoying

Code: Select all

 find . -name *.[Tt][Xx][Tt] -type f -print -exec chmod 644 {} \;