I was trying to separate 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
.
My last resort solution is: (1) On install of my addon if the pref of taskbar.grouping.useprofile
is there and set to true, 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
.