Results 1 to 3 of 3
My problem is as follows:
if a text file begins with a dot '.' and it's 2 or more chars long, Konqueror displays a blank page when I click on ...
- 09-21-2008 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 2
Problem opening an ASCII file that begins (the file) with a dot
My problem is as follows:
if a text file begins with a dot '.' and it's 2 or more chars long, Konqueror displays a blank page when I click on the file's icon. The same happens if I choose to open it in Konqueror embedded file viewer, and the same again happens if I right-click ==> view document source; this time Gedit will display a blank file (but only when invoked by Konqueror).
Any body able to help me here?
'uname -a' = 'Linux debian 2.6.18-6-686 #1 SMP Mon Aug 18 08:42:39 UTC 2008 i686 GNU/Linux'
Konqueror 3.5.5
KDE 3.5.5
Gnome 2.14.3
- 09-21-2008 #2Linux User
- Join Date
- Feb 2006
- Posts
- 484
hi
I think it is KDE related problem. I never used KDE but if you do some search i'm prety sure you will find an options about the treating of hidden files.
A dot in the begining of a filename means that file is a hidden file.
- 09-22-2008 #3Just Joined!
- Join Date
- Sep 2008
- Posts
- 2
Thank you iwanabeguru for replying
The problem is not concerning the file name, but the file CONTENTS.
After a few experiments I was able to solve it -- sort of.
An ASCII file containing simply '.a' (without the quotes), opens in the default editor when clicked on.
A similar file containing '.ab' is instead displayed as a TOTALLY blank file, and the same is true if the file contains lots more text, as long as its FIRST character is a DOT.
Having discovered that if the file-name is given a recognized extension like .txt, .c, .pl etc., the file is opened normally, then I played a bit with the 'file association' of Konqueror, and
ended-up adding the '*' pattern to the .txt, .TXT for 'plain text' files; an asterisk did the trick, but I wander if Konqueror "looks" inside the file to determine its type, or if now just any file will try to open in the editor instead.
Thanks for replying anyway.


Reply With Quote
