Re: Javascript running "under XUL" and add-on owner
reverendlinux <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <4deabda4-5d68-4f89-8de0-98e421d5bac4@ql4g2000pbc.googlegroups.com> |
On Aug 22, 4:12 am, Y a Personne <[email protected]> wrote: > 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(); Simple! Thanks...