Blogfinger

Which Firefox profile am I using right now?

Wednesday Nov 04, 2009

Sometimes, I'd like to know which profile I am using with my current Firefox instance (for example if an instance has been open for a long time, or if I'm running two instances (using firefox -P -no-remote) at the same time.

I found the solution on this web site:

Start Tools->Error Console (or press <ctrl><shift>j)

Then, in the Code line at the top (you can jump to it using <ctrl>o), enter the following code and press Return (or click the "Evaluate" button):

alert(Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile).path);

It will show the full path of your profile in a popup window. The name of the profile is the last string after the last dot.

[0] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg

My (ksh) profile...

Thursday Apr 26, 2007

Somehow, my original post (my (.)profile...) got lost. So here are my up-to-date .profile and .kshrc files. Please download them directly via right mouse key and do not load it into a browser window and copy and paste it from there, as one of the files contains a binary character.

There's some interesting stuff in it:

  • a two-line prompt that contains the current time
  • a function ("md") that creates a directory and walks (cd) into it
  • a function ("d2u") that converts DOS line endings into UNIX line endings.
  • a function ("fp") that searches for entries in the software installation database /var/sadm/install/contents
  • a vi function (hhxpl) mapped to the unused key "q" which toggles the last two characters, just like Emacs' t

[0] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg