Mozilla only enumerates the general.startup.* prefs (those set in the prefs UI) if the program receives the default number of args. "Default" is considered to be 1. http://lxr.mozilla.org/seamonkey/source/xpfe/bootstrap/nsAppRunner.cpp#1470 But the Mach-0 build, if double-clicked from the Finder, is passed 2 args so we don't read these prefs.
Created attachment 105192 [details] [diff] [review] patch This fixes it on 10.2. Can anybody with a 10.1 system test whether we get passed the psn arg on 10.1 as well?
Comment on attachment 105192 [details] [diff] [review] patch r=sdagley (ccarlen and I discussed the PSN compare and he's convinced me the sprintf is less overhead than a scanf) And verified this will work on 10.1 as we get 2 args there with the 2nd being the PSN
Comment on attachment 105192 [details] [diff] [review] patch sr=sfraser
Comment on attachment 105192 [details] [diff] [review] patch a=asa for checkin to the 1.2 branch (on behalf of drivers).
Checked into 1.2 branch.
out of curiosity, should this be checked into the trunk as well? (unless you already did so earlier. :)
It went into the trunk already.
okay, good. rs vrfy (checked lxr) with 2002.11.18.14 (trunk, mach-o).