2 // Copyright 2007 Sun Microsystems, Inc. All rights reserved.
\r
3 // SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
\r
6 // get the JQS extension directory
\r
7 const id = "jqs@sun.com";
\r
8 var ext = Components.classes["@mozilla.org/extensions/manager;1"]
\r
9 .getService(Components.interfaces.nsIExtensionManager)
\r
10 .getInstallLocation(id)
\r
11 .getItemLocation(id);
\r
13 // create an nsILocalFile for the executable
\r
14 var file = Components.classes["@mozilla.org/file/local;1"]
\r
15 .createInstance(Components.interfaces.nsILocalFile);
\r
17 // construct command line
\r
18 file.initWithPath(ext.path + "\\..\\..\\..\\..\\bin\\jqsnotify.exe");
\r