MozillaZine

display currently active profile name?

User Help for Mozilla Firefox
jimspoon
 
Posts: 17
Joined: July 21st, 2005, 9:29 pm

Post Posted July 31st, 2008, 8:16 pm

Is there a way to display the name of the currently active user profile, while running Firefox?

I think I found the name of my active profile by closing Firefox and running "firefox -profilemanager" - the active profile was highlighted in the displayed list of profiles. But it seems like I should be able to see the name of the active profile without exiting Firefox.

Thanks for any help. I searched here and via google for awhile, but didn't find an answer to my question.

malliz
Folder@Home

User avatar
 
Posts: 42098
Joined: December 7th, 2002, 4:34 am
Location: Aus

Post Posted July 31st, 2008, 8:26 pm

The Nightly Tester tools extension has this as one of it's Options.
Tools - Addons - Extensions - Nightly Tester tools - Options - "Use custom title" and it's one of the options on the list

http://www.oxymoronical.com/web/firefox/nightly
What sort of man would put a known criminal in charge of a major branch of government? Apart from, say, the average voter.
"Terry Pratchett"

jimspoon
 
Posts: 17
Joined: July 21st, 2005, 9:29 pm

Post Posted July 31st, 2008, 11:28 pm

Thanks - I've installed it. No way to show the active profile name without an extension? I thought it might come up by searching about:config, but there doesn't seem to be a preference that shows the active profile. I wonder where Firefox stores the name of the active profile. I don't see it in the registry.

dickvl

User avatar
 
Posts: 51515
Joined: July 18th, 2005, 3:25 am

Post Posted August 1st, 2008, 2:48 am

You need chrome access.
You can copy and paste this text in the Eval line of the Tools >Error Console:
Code: Select all
alert(/[^\\]*$/.exec(Components.classes["@mozilla.org/file/directory_service;1"]
         .getService(Components.interfaces.nsIProperties)
         .get("ProfD", Components.interfaces.nsIFile).path));

If you use a non-standard location or want the full path:
Code: Select all
alert(Components.classes["@mozilla.org/file/directory_service;1"]
         .getService(Components.interfaces.nsIProperties)
         .get("ProfD", Components.interfaces.nsIFile).path);

jimspoon
 
Posts: 17
Joined: July 21st, 2005, 9:29 pm

Post Posted August 1st, 2008, 11:16 am

Cool. It works! Thanks.

Return to Firefox Support


Who is online

Users browsing this forum: Google [Bot] and 25 guests