LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Which file contains konqueror browser identification? (https://www.linuxquestions.org/questions/slackware-14/which-file-contains-konqueror-browser-identification-802785/)

cola 04-19-2010 01:58 AM

Which file contains konqueror browser identification?
 
Which file contains this line:
Code:

Mozilla/5.0 (compatible; Konqueror/4.2; Linux 2.6.29.6-smp; X11; i686) KHTML/4.2.4 (like Gecko)
I want to edit this line.

zytsef 04-19-2010 03:20 AM

Most KDE apps are tricky to manage through config files, so I couldn't tell you how to do that specifically. Probably the best and certainly easiest solution is to go to Tools --> Change Browser Identification in the Konqueror menu.

knudfl 04-19-2010 04:28 AM

The text line, that you quote, is not from a text file on your OS.
This information is compiled into a binary.
May be more or less readable in the source code.
The text line can be read, when you e.g. open :
Konqueror > Settings > 'Browser Identification'.

You can add a "Site Specific Identification", and that info
will most certainly be written to a file in ~.kde4/share/config/
( I don't know which one.)
.....

cola 04-19-2010 04:33 AM

Quote:

Originally Posted by zytsef (Post 3940031)
Most KDE apps are tricky to manage through config files, so I couldn't tell you how to do that specifically. Probably the best and certainly easiest solution is to go to Tools --> Change Browser Identification in the Konqueror menu.

You can't edit/change or add something to that line from Tools-->Change Browser Identification.

cola 04-19-2010 04:35 AM

Quote:

Originally Posted by knudfl (Post 3940066)
The text line, that you quote, is not from a text file on your OS.
This information is compiled into a binary.
May be more or less readable in the source code.
The text line can be read, when you e.g. open :
Konqueror > Settings > 'Browser Identification'.

You can add a "Site Specific Identification", and that info
will most certainly be written to a file in ~.kde4/share/config/
( I don't know which one.)
.....

There is nothing such file in /.kde/share/config to edit.
(konquerorrc)

IW2B 04-19-2010 04:59 AM

Hi,

I agree that the menu option is probably the better way to do it. On My Fedora 12 system, Konqueror Version 4.4.2 (KDE 4.4.2):

Before:

Code:

#cat ~/.kde/share/config/kio_httprc
[$Version]
update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2

After changing in via the menu:

Code:

[$Version]
update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2

[www.fedoraproject.org]
UserAgent=Mozilla/5.0 (X11; U; i686 Linux; en_US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5

Ian

cola 04-19-2010 05:28 AM

Quote:

Originally Posted by IW2B (Post 3940098)
Hi,

I agree that the menu option is probably the better way to do it. On My Fedora 12 system, Konqueror Version 4.4.2 (KDE 4.4.2):

Before:

Code:

#cat ~/.kde/share/config/kio_httprc
[$Version]
update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2

After changing in via the menu:

Code:

[$Version]
update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2

[www.fedoraproject.org]
UserAgent=Mozilla/5.0 (X11; U; i686 Linux; en_US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5

Ian

Thanks for finding this file.
I will try this and let you know the result after editing.

cola 04-19-2010 05:42 AM

This is a test post.

cola 04-19-2010 05:57 AM

Quote:

Originally Posted by IW2B (Post 3940098)
Hi,

I agree that the menu option is probably the better way to do it. On My Fedora 12 system, Konqueror Version 4.4.2 (KDE 4.4.2):

Before:

Code:

#cat ~/.kde/share/config/kio_httprc
[$Version]
update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2

After changing in via the menu:

Code:

[$Version]
update_info=kioslave.upd:kde2.2/r1,kioslave.upd:kde2.2/r2

[www.fedoraproject.org]
UserAgent=Mozilla/5.0 (X11; U; i686 Linux; en_US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5

Ian

Thank you.It worked.I edited that line for www.linuxquestions.org from ~/kde/share/config/kio_httprc


All times are GMT -5. The time now is 11:27 PM.