Re: Javascript running "under XUL" and add-on owner
Y a Personne <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
Le 22/08/2012 03:31, reverendlinux a écrit : > On Aug 21, 7:11 pm, Y a Personne <[email protected]> wrote: >> Le 22/08/2012 02:02, Yves Dolce a écrit : >> >>> And: >>> 3. Can an executable be launched from an add-on? >> >>> Thanks again. >> >> Yes, but Mozilla not like this function > > Really? How? > With XPCom. This code start the calculator on Windows const Cc = Components.classes; const Ci = Components.interfaces; var aFile = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile); aFile.initWithPath('C:\\windows\\system32\\calc.exe'); aFile.launch();