Compare Revisions

MCD, Mission Control Desktop, AKA AutoConfig

Revision 57862:

Revision 57862 by jomi419 on

Revision 57863:

Revision 57863 by Parasyte on

Title:
MCD, Mission Control Desktop, AKA AutoConfig
MCD, Mission Control Desktop, AKA AutoConfig
Slug:
MCD,_Mission_Control_Desktop_AKA_AutoConfig
MCD,_Mission_Control_Desktop_AKA_AutoConfig
Tags:
Administration, enterprise, "Configuration management"
Administration, enterprise, "Configuration management"
Content:

Revision 57862
Revision 57863
t383      <img alt="Autoconfig debug message, use of display error" ct383      <img alt="TB-vista-MCD-debug-msg.jpg" class="internal defau
>lass="internal" src="/@api/deki/files/379/=TB-vista-MCD-debug-msg>lt" src="/@api/deki/files/4816/=TB-vista-MCD-debug-msg.jpg">
>.jpg"> 
384    </p>
384    </p>385    <p>
386      The displayError()&nbsp;function does not work properly in 
 >Thunderbird 3.1: See <a class=" link-https" href="https://bugzill
 >a.mozilla.org/show_bug.cgi?id=502597#c34" rel="freelink">https://
 >bugzilla.mozilla.org/show_bu...?id=502597#c34</a>
387    </p>
388    <p>
389      A usable workaround is placing the following code at the to
 >p of your autoconfig script:<code><br></code>
390    </p>
391    <pre>
392<code>// Enable logging.<br>pref("MCD.logging.console", "All");<b
 >r>pref("MCD.logging.dump", "All");<br>Components.utils.import("re
 >source:///modules/gloda/log4moz.js");<br>var log = Log4Moz.getCon
 >figuredLogger("MCD");<br><br>// Enable alerts.<br>var alerts = Co
 >mponents.classes["@mozilla.org/alerts-service;1"]<br>            
 > .getService(Components.interfaces.nsIAlertsService);<br><br>// d
 >isplayError() is broken. Let's override it.<br>function displayEr
 >ror(title, msg) {<br>    log.debug(title + ": " + msg);<br>    al
 >erts.showAlertNotification("chrome://branding/content/icon48.png"
 >, title, msg);<br>}</code>
393</pre>

Back to History