diff options
author | Vincent Untz <vuntz@gnome.org> | 2009-12-18 20:32:51 +0100 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-12-18 20:40:06 +0100 |
commit | e896b194fbff39b480c571483c7d549865f38960 (patch) | |
tree | ce631db5e6d7cb3fb2e57d5448fd7193ad9f095e /embed/ephy-embed-prefs.h | |
parent | dcdebec53b1da88a6b3477d13437af2c53ac73b4 (diff) | |
download | epiphany-e896b194fbff39b480c571483c7d549865f38960.tar.gz |
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 'embed/ephy-embed-prefs.h')
-rw-r--r-- | embed/ephy-embed-prefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/ephy-embed-prefs.h b/embed/ephy-embed-prefs.h index ada4ac860..4865aa0ed 100644 --- a/embed/ephy-embed-prefs.h +++ b/embed/ephy-embed-prefs.h @@ -41,6 +41,7 @@ #define CONF_DISPLAY_SMOOTHSCROLL "/apps/epiphany/web/smooth_scroll" #define CONF_WEB_INSPECTOR_ENABLED "/apps/epiphany/web/inspector_enabled" #define CONF_CARET_BROWSING_ENABLED "/apps/epiphany/web/browse_with_caret" +#define CONF_USER_AGENT "/apps/epiphany/general/user_agent" /* These are defined gnome wide now */ #define CONF_NETWORK_PROXY_MODE "/system/proxy/mode" |