ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #20865
Re: User agent on ubuntu touch
On Wed, 1/6/16, Hans Mayer <hans.mayer@xxxxxxx> wrote:
Subject: [Ubuntu-phone] User agent on ubuntu touch
To: ubuntu-phone@xxxxxxxxxxxxxxxxxxx
Date: Wednesday, 1 June, 2016, 9:35
Hello,
Is there a possibility to change the user agent the web
browser on UT
sends to sites?
E.G. slack.com does not support UT. When opening the site, I
have no
access to channels.
If I can say "i am a desktop", the displayed data would be
the same as
on PC. This is ok on a Meizu 5 PRO.
--
Best Regards
Hans
--------------------------------------------
I don't think you can do this from the browser settings, however if you create a new web app (and, I guess, you could create a whole general browser by not putting a URL pattern restriction in) you can specify the user agent. For example I created a "full-fat" app to access the Twitter site, as certain functions are restricted/.blocked on the mobile site, my app's Exec line set up a desktop agent to send:-
Exec=webapp-container --enable-back-forward --store-session-cookies --user-agent-string="Mozilla/5.0 (Linux; Ubuntu) AppleWebKit/537.36 Chromium/35.0.1870.2 Safari/537.36" --webappUrlPatterns=https?://*.twitter.com/*,https?://twitter.com/* http://twitter.com %u
You could then package this as a click package and then manually install it on your device
Phil
--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help : https://help.launchpad.net/ListHelp
Follow ups