Line | |
---|
1 | // @(#)overlay.js 1.4 10/03/29
|
---|
2 | //
|
---|
3 | // Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
|
---|
4 | // ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
---|
5 | //
|
---|
6 |
|
---|
7 | // get the JQS extension directory
|
---|
8 | const id = "jqs@sun.com";
|
---|
9 | var ext = Components.classes["@mozilla.org/extensions/manager;1"]
|
---|
10 | .getService(Components.interfaces.nsIExtensionManager)
|
---|
11 | .getInstallLocation(id)
|
---|
12 | .getItemLocation(id);
|
---|
13 |
|
---|
14 | // create an nsILocalFile for the executable
|
---|
15 | var file = Components.classes["@mozilla.org/file/local;1"]
|
---|
16 | .createInstance(Components.interfaces.nsILocalFile);
|
---|
17 |
|
---|
18 | // construct command line
|
---|
19 | file.initWithPath(ext.path + "\\..\\..\\..\\..\\bin\\jqsnotify.exe");
|
---|
20 |
|
---|
21 | // and launch it
|
---|
22 | file.launch();
|
---|
23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.