aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2009-12-19 03:32:51 +0800
committerXan Lopez <xan@gnome.org>2009-12-19 03:40:06 +0800
commite896b194fbff39b480c571483c7d549865f38960 (patch)
treece631db5e6d7cb3fb2e57d5448fd7193ad9f095e /data
parentdcdebec53b1da88a6b3477d13437af2c53ac73b4 (diff)
downloadgsoc2013-epiphany-e896b194fbff39b480c571483c7d549865f38960.tar
gsoc2013-epiphany-e896b194fbff39b480c571483c7d549865f38960.tar.gz
gsoc2013-epiphany-e896b194fbff39b480c571483c7d549865f38960.tar.bz2
gsoc2013-epiphany-e896b194fbff39b480c571483c7d549865f38960.tar.lz
gsoc2013-epiphany-e896b194fbff39b480c571483c7d549865f38960.tar.xz
gsoc2013-epiphany-e896b194fbff39b480c571483c7d549865f38960.tar.zst
gsoc2013-epiphany-e896b194fbff39b480c571483c7d549865f38960.zip
Add custom user-agent support
We default to the WebKitGTK+ user agent with Epiphany and the version appended to it. This can be overriden/modified in two ways: - The gconf key /apps/epiphany/general/user_agent has the maximum priority, and if it's set it will be always used. - If the gconf key is not set, vendors can still customize the UA by placing a branding.conf file in the share data directory. One example would be: [User Agent] Vendor=SUSE VendorSub=11.2 VendorComment=2.29.94-1 And the result would be: Mozilla/5.0 (X11; U; Linux i686; fr-fr) AppleWebKit/531.2+ (KHTML, like Gecko) Safari/531.2+ SUSE/11.2 (2.29.94-1) Epiphany/2.29.94 Bug #580903 Signed-off-by: Xan Lopez <xan@gnome.org>
Diffstat (limited to 'data')
-rw-r--r--data/epiphany.schemas.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/data/epiphany.schemas.in b/data/epiphany.schemas.in
index 5faccc472..bdfa8c267 100644
--- a/data/epiphany.schemas.in
+++ b/data/epiphany.schemas.in
@@ -94,6 +94,17 @@
<short>Enable smooth scrolling</short>
</locale>
</schema>
+ <schema>
+ <key>/schemas/apps/epiphany/general/user_agent</key>
+ <applyto>/apps/epiphany/general/user_agent</applyto>
+ <owner>epiphany</owner>
+ <type>string</type>
+ <default></default>
+ <locale name="C">
+ <short>User agent</short>
+ <long>String that will be used as user agent, to identify the browser to the web servers.</long>
+ </locale>
+ </schema>
<schema>
<key>/schemas/apps/epiphany/web/minimum_font_size</key>
<applyto>/apps/epiphany/web/minimum_font_size</applyto>