On Sunday 20 November 2011, Richard J.M. Hill wrote: > On Sunday 20 November 2011, Laurent Dard wrote: > > > Konqueror wrongly recognizes some files as of type: > > * diff (as stated here: http://bugs.kde.org/116272 > > * Java code (the gtkrc file type which is 'UTF-8 Unicode C++ program text') > > I have another non-technical observation... My gtkrc file contains two > lines with the word class in them. Since I associate the word class > with Java, I thought I would see what would happen if I deleted them > from a copy of the gtkrc file. Surprise! Konqueror recognizes them as > plain text! Even more interesting, is that if I delete only ONE line > with the word class in it, it still works! Not only that, but it doesn't > matter which of the two lines I delete! > > Next, I thought I would add the word class to a file which Konqueror > identified as plain text. If I added the word class to kpatrc twice > Konqueror identified it as a Java file. > > Richard. > Another observation in the same vein... There are two files in my .kde/share/config * directory which contain the string [Desktop Entry]. These are konsolerc and kpdfrc. In the case of kpdfrc, the first line in the file says [Desktop Entry] and that file appears as an executable file in Konqueror. The konsolerc file has [$Version] on the first line followed by version information. If I copy the first two lines from konsolerc into kpdfrc, and then edit konsole to read kpdf ;-) the file is now identified as plain text by Konqueror, and Kpdf still functions normally. I don't know why Konsole and Kpdf create config files which contain the string [Desktop Entry] though... * I am running KDE 3.5.10, built from source, on Slackware 12.2 Richard -- Stupidity is its own reward.