Firefox – Controlling settings with Mandatory profiles in Citrix

I am writing this post after a day of banging my head against a brick wall. But by the end of this article I will tell you how to control Firefox with out a GPO and stop those horrid first run bits from appearing each time.

Here is my situation, I have a number of users that require Firefox for a specific web site. So I was tasked with getting Firefox working in our XenApp 6.5 farm. One key thing to note is that we have a mandatory profile which all users get when logging on. As you will no doubt be aware, a mandatory profile means that no user settings are saved when the session/application is closed.

So, this means that with Firefox every time a user opens the application the following windows appear

  1. The Import settings wizard – Which allows you to import IE or Chrome favourites
  2. The Firefox is not your default browser check is performed and you must select an action
  3. You get the two default Firefox web pages open in two tabs

Having to do this every time during testing annoyed me so I couldn’t imagine my users having to cancel those messages every time they open the application.

Anyhow, lets discuss what I have done today.

Firstly, I have played with all the Group polices and I can say that none of them work with the newer versions. I think from certain articles I have seen you have to use this and their packager, but you have to pay for it.

I have also looked at these but I just didn’t have a great deal of joy and to be honest they all seem a little complicated!

Solution for getting rid of the Import Wizard.

First off logon to your Citrix server as an admin and run up the Firefox installer. In my case I was using 16.0.2 that was downloaded from Mozilla as a standard installer.

Dont forget to do the usual Change user /install before you go!

When FF has installed open it up and you will have the lovely import wizard appear, you can just cancel this. By doing this you create a Mozilla profile in the local profile. You will find it in two locations, you need to copy these to the same locations in your shared mandatory profile. The format of the profile folder is something random followed by .default.

For example ghsay12.default

Location 1 XP/2003 Server – C:\Documents and Settings\<user>\Application Data\Mozilla\Firefox\Profiles

Location 2 XP/2003 – C:\Documents and Settings\<user>\Local Settings\Application Data\Mozilla\Firefox\Profiles

Location 1 Win7/2008 – C:\users\\AppData\Roaming\Mozilla\Firefox\Profiles

Location 2 Win7/2008 – C:\users\\AppData\Local\Mozilla\Firefox\Profiles

By copying a profile folder to the same location in your mandatory profile, you will cease to have the import wizard appear after each logon.

Next… How to set the home page and get rid of the default Browser check message.

In your profile location 1 you will find a little file called pref.js. Now you can edit this file directly in notepad as I did, or you can open your FF browser and go to the following webpage about:config.

In order to set the home page and stop those default start-up tabs add the following line to your preference file

user_pref(“browser.startup.homepage”, ““);

I added this line above these default ones..

user_pref(“browser.startup.homepage_override.buildID”, “20121024073032”);
user_pref(“browser.startup.homepage_override.mstone”, “16.0.2”);

To get rid of the default browser check you need to make sure that this line is present and set to false.

user_pref(“”, false);

If it’s not present I found having it above the broswer.startup.homepage setting worked fine.

Anyway, I hope this helps. I would like to try to get the CCK plugin file working at some point as I think this would be ideal, but it all comes down to time!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s