Forum posts for firefox.exe

Get defaultGroupId of firefox.exe (Win7)

I was trying to seperate the group of windows per profile in Win7. I found out this is doable by creating a preference in ALL profiles of taskbar.grouping.useprofile and setting it to true and restarting browser of all profiles. (https://bugzilla.mozilla.org/show_bug.cgi?id=644914)

But how it works is it changes the defaultGroupId Cc['@mozilla.org/windows-taskbar;1'].getService(Ci.nsIWinTaskbar).defaultGroupId

The problem with this is before this prefernce is created the Firefox uses the defaultGroupId of the firefox.exe BUT after creating the pref profiles now have a defaultGroupId different from that. SO if initially, before creating that pref and restarting browsers, if user had firefox.exe pinned then it will always be separate after the pref is created and browsers restarted.

So what I want to do is for the profile marked as Default=1 in profiles.ini I want to programatically make it use the defaultGroupId of the firefox.exe but the thing is once pref is created and browser restarted I can't figure out the defaultGroupId of the firefox.exe so please help.

My last resort solution is: (1) On install of my addon if the pref of taskbar.grouping.useprofile _IS_ there and set t otrue, then set it to false and ask user to restart then on restart it will figure out the defaultGrupId and store it as a preference then i will add the pref back then ask user to restart again (really dont want to do this) (2) On install of my addon if if the pref of taskbar.grouping.useprofile is _NOT_ there and set to true then just set the preference to the value of the current defaultGroupId.

Thanks
Noit

View complete forum thread with replies

Other posts related to firefox.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Get defaultGroupId of firefox.exe (Win7)
How to get path to firefox.exe and equiv in other os
Failed to connect to binary FirefoxBinary(C:Program Files (x86)Mozilla Firefoxfirefox.exe…
Getting error “Failed to connect to binary FirefoxBinary(E:Mozillafirefox.exe) on port 7055”

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.