You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
779 B
JavaScript
23 lines
779 B
JavaScript
15 years ago
|
//
|
||
|
// Copyright 2007 Sun Microsystems, Inc. All rights reserved.
|
||
|
// SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
||
|
//
|
||
|
|
||
|
// get the JQS extension directory
|
||
|
const id = "jqs@sun.com";
|
||
|
var ext = Components.classes["@mozilla.org/extensions/manager;1"]
|
||
|
.getService(Components.interfaces.nsIExtensionManager)
|
||
|
.getInstallLocation(id)
|
||
|
.getItemLocation(id);
|
||
|
|
||
|
// create an nsILocalFile for the executable
|
||
|
var file = Components.classes["@mozilla.org/file/local;1"]
|
||
|
.createInstance(Components.interfaces.nsILocalFile);
|
||
|
|
||
|
// construct command line
|
||
|
file.initWithPath(ext.path + "\\..\\..\\..\\..\\bin\\jqsnotify.exe");
|
||
|
|
||
|
// and launch it
|
||
|
file.launch();
|
||
|
|