Archive for July 15th, 2009
An old Firefox trick with a Windows 7 twist.
Posted by PhazeonPhoenix in Windows 7 on July 15th, 2009
I’ll come right out and say it. I never would have thought I would have been excited about an OS release (again) but I am starting to like it. So many things I used to use third party programs for are now built into Windows 7 and they did a decent job too.While I could fill several posts about the tricks I’ve found (and I probably will in the near future) this particular post is about a trick I just figured out how to do.
A quick description of the windows 7 feature I’m talking about, In windows 7 you have the ability to ‘Pin’ applications to the task bar. In all honesty, it feels very similar to the Mac OS X dock bar. The ‘Pinned Application’ becomes the task bar entry while the program is running and remains once the application has ended. It doesn’t do any nifty scaling of the application’s Icon, but it is none the less effective.
Also very important to my article is the changes to the Windows Grouping feature as it was called in Windows XP. They’re now called Combined Taskbar buttons. As you can see from the screenshot to the right, multiple windows appear as layered icons in the task bar, and when you hover your mouse over this group of icons you’ll be able to see the contents of those windows if you have Aero Peek enabled.
As you can tell from my screenshots that I use Firefox as my primary browser (and I use Pidgin and FooBar 2000 but that’s neither here nor there) and it’s a great browser for many reasons I don’t need to expand on here. If you’re not using it, you don’t know what you’re missing! get it here!
I tend to have several separate Firefox profiles depending on what I’m going to be doing at the time. I have my normal day-to-day browsing profile, my Web Developer profile (You don’t want to try and casually browse with some of the more advanced dev plugins installed, odd things happen) and a clean profile with no addons. If you’re not familiar with Firefox profiles please read this article. The one missing tidbit of information from that article is if you add -no-remote to the command arguments, you can run multiple copies of Firefox, each using a different profile to store it’s data.
None of this is news. It’s been written, blogged, twittered, stumbled, shared, and posted about. I’ve always launched my devel environment with the -no-remote argument and my normal one with out it. The problem I ran into was Windows 7 (and Windows XP) would group all Firefox windows together on the same taskbar button. I usually turned off window grouping to combat this problem in XP. I’ve grown quite fond of Windows 7’s way of handling Combined Taskbar entries and I wanted to find a way to have one taskbar entry for each profile I was running. Thankfully I found out how!

Two Firefox instances with multiple windows appear as two "stacks" of task bar entries. Warning: large image.
The Solution turned out to be as simple as creating a copy of the Firefox installation in my Program Files directory. When creating the shortcut that launches the second profile as described in the article above, use the copy of Firefox as the target Application. I went as far as to rename the shortcut and add a custom icon to it. See my example on the right. After creating the shortcut, execute the shortcut. If you did it right, it will create a new taskbar entry with the name and icon you specified in the shortcut. You then have to right click on the taskbar entry and select “Pin this program to Taskbar”.
There are a few little side notes. You don’t have to keep the original shortcut around. The process of pinning to the task bar actually creates a copy of the shortcut used to launch the program into C:\Users\<user>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar and you can delete the one you created initially. I’d also recommend disabling Firefox’s Default Browser check. Make sure one of your installations is configured to be default, not the other or else Firefox will ask you each time. Finally, changing the icon of the shortcut does not change the icon of the Firefox window itself, as indicated by the red arrow on the image to the left. It will only change the icon on the task bar as indicated by the green arrow.


