SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
has anyone tried to change the useragent or whatever is needed for this purpose. I've installed Google-Chrome and now my posts here in this forum are missing the Slackware-logo.
There is an addon for Chrome which can change the useragent, but I don't know if this is necessary. And if it's necessary, how to change the useragent in order to have the logo back?
$ google-chrome --user-agent="Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16"
I have also edited my google-chrome.desktop on /opt/google/chrome to whenever I launch it, this is already present. That extra info came from about:version.
Edit: Oops, I've recently updated my Google Chrome and forgot to what I just said. :-P
Last edited by rfernandez; 04-12-2011 at 02:34 PM.
Last edited by grissiom; 04-12-2011 at 07:55 PM.
Reason: set the VERSION correctly. I hope the webkit version won't make difference in most of the times...
The next thing which doesn't work is, if I launch Chrome out of Thunderbird (i.e. opening a link in an email) I don't have the useragent with Slackware.
I'm also wondering if how I can change the menulanguage in Chrome to german.
Rebuilding with the patch from post #5 works for me.
Additionally, editing the exec line in the shell script ( i.e.- /usr/lib64/chromium-browser/chromium-launcher.sh )
also worked for me in gentoo with chromium
Code:
#exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins "$@"
exec -a "chromium-browser" "$PROGDIR/chrome" --user-agent="Mozilla/5.0 Gentoo (X11; U; Linux x86_64; en-US) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.57 Safari/534.24" --extra-plugin-dir=/usr/lib/nsbrowser/plugins "$@"
Last edited by andrewthomas; 05-01-2011 at 11:09 AM.
Reason: added alternative info
Got it working by editing my google-chrome.desktop and modifying Exec to Exec=/opt/google/chrome/google-chrome --user-agent="Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16"
Got it working by editing my google-chrome.desktop and modifying Exec to Exec=/opt/google/chrome/google-chrome --user-agent="Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16"
I have done the same thing, even rebuilt the package with the above patch. <scratches head>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.