User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:126.96.36.199) Gecko/20080311 Firefox/188.8.131.52
process.run changed behavior.
with my extenstion I would like to open command prompt window or see batch
output and now it's impossible?
Steps to Reproduce:
path = System32+"cmd.exe"
var file = Components.classes["@mozilla.org/file/local;1"]
var process = Components.classes["@mozilla.org/process/util;1"]
var args = ["/k", "cd", varParam];
process.run(false, args, args.length);
no console window
the same as Gecko 1.8 - console window visible
Is it possible to expose CREATE_NO_WINDOW flag in nsIProcess
This was an intentional change, made in bug 421751. nsIProcess is frozen and can't easily be changed.
Adam, in bug 421751 comment #14 I gave you an example of how to run a command, with arguments, in a visible command window. Why do you still say it's impossible?
FWIW, on other platforms we do not (and did not before bug 421751) open any command windows when executing external processes.