display currently active profile name?

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

display currently active profile name?

Post by jimspoon »

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.
User avatar
malliz
Folder@Home
Posts: 43796
Joined: December 7th, 2002, 4:34 am
Location: Australia

Re: display currently active profile name?

Post by malliz »

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

Re: display currently active profile name?

Post by jimspoon »

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.
User avatar
dickvl
Posts: 54146
Joined: July 18th, 2005, 3:25 am

Re: display currently active profile name?

Post by dickvl »

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

Re: display currently active profile name?

Post by jimspoon »

Cool. It works! Thanks.
Locked