How can I set the User Agent in a webapp?
Solution 1:
You have basically 2 ways to do this:
- in your desktop file, update the Exec= line by adding --user-agent-string='Your UA' to it,
- add a webapp-properties.json file in your webapp folder such as:
http://bazaar.launchpad.net/~dbarth/+junk/webbapp-whichbrowser/view/head:/webapp-properties.json
there is a small caveat here, you have to move your other command line definition (such as --webappUrlPatterns) in that file (in the "includes" section), and add --webappModelSearchPath=. or --local-webapp-manifest (which is a shortcut for the latter) to your Exec= line,