LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-21-2012, 10:09 AM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,119

Rep: Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818
Slackware Icon in Firefox 11


I'm having some trouble getting the Slackware icon to "stick" in Firefox 11.0. I have tried editing both about:config and prefs.js and can get a one-time report from http://whatsmyuseragent.com/ but the entry disappears from prefs.js when I exit and restart Firefox. Mozilla's documentation notes that what you do in about:config is saved in prefs.js.

The useragent is reported Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 (from Whats My User Agent). I've added this to prefs.js:
Code:
user_pref("general.useragent.override","Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0/ Slackware Linux");
or the same thing to about.conf and get the one-time report but the entry disappears from prefs.js after exit and restart. I've tried with and without the space between 11.0/ and Slackware Linux and pretty much everything else I can think of or that's suggested in Mozilla's documentation.

So, what the heck am I doing wrong?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-21-2012, 10:45 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,119

Original Poster
Rep: Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818
I think I got it fixed -- I had installed an extension, User Agent Switcher, at some point in the distant past (you know, like six months ago -- essentially eternity) that simply switched to the default user agent on every start. Who knew. I removed that extension from Firefox, add this to prefs.js
Code:
user_pref("general.useragent.override","Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0/ Slackware Linux");
and we'll see if it works.

It does.

All is well that ends, sorry to bother.
 
Old 03-21-2012, 10:48 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,451
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Member response

Hi,

Should look like this;
Quote:
general.useragent.override;Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 Slackware Linux
Version level will depend on FireFox level #.
 
Old 03-21-2012, 10:49 AM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,388

Rep: Reputation: 187Reputation: 187
This is what works for me
Quote:
Mozilla/5.0 (X11; Slackware Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0
 
Old 03-21-2012, 11:00 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,451
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Member response

Hi,

I noticed that my upgrade to FireFox 11 was not reflected properly. I guess that general.useragent.override is not changed and one must make the edit manually.
Quote:
general.useragent.override;Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 Slackware Linux

Last edited by onebuck; 03-21-2012 at 11:04 AM. Reason: add agent after restart
 
Old 03-21-2012, 05:58 PM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,119

Original Poster
Rep: Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818
After a little more study, here's a couple of things that might be worth knowing (at least about Firefox 11.x).

If you have edited about:config, the value you enter there for general.useragent.override is saved in .mozilla/firefox/your_unique_dir/prefs.js as
Code:
user_pref("general.useragent.override", "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 Slackware Linux");
That is, you can edit in about:config or you can directly enter the above in prefs.js using a text editor (which is what I prefer to do for what that's worth). You must exit Firefox (or Seamonkey!) before editing prefs.js with a text editor (any changes you make will be lost when Firefox closes if you don't exit it first).

If you want to know the actual, current, user agent, you can exit Firefox, delete the general.useraget.override line from prefs.js, restart Firefox and either choose Troubleshooting Information in the Help menu or go to http://whatsmyuseragen.com and either will show you the default user agent (which changes when the Firefox version is changed). After you enter the Slackware string with either about:config or in prefs.js, you can see the change the same ways.

Then it's no great trick to double-click on the displayed user agent, exit Firefox, edit the prefs.js file (or about:config) and insert that line as shown above.

This is, of course, only if you give a hoot about accurately presenting your user agent to a web site; only takes a couple of minutes to do and, as always, YMMV.

Hope this helps some.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] My little Slackware icon has disappeared in my posts since upgrade to Firefox 3.6... tallship Slackware 30 03-11-2010 12:24 PM
Slackware 12.2 and bouncing firefox icon arubin Slackware 10 12-18-2008 07:19 AM
Firefox Icon? carlosinfl Debian 2 09-12-2006 10:48 PM
Where is firefox icon? planetsheinker Slackware 5 09-05-2005 01:41 PM
Gnome icon and Firefox 0.8 DrD Linux - Newbie 2 02-10-2004 01:22 AM


All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration