Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (process)
Viewing all articles
Browse latest Browse all 20

Ti.Desktop -Process - Env or Enviroment Argument

$
0
0

Hey,

does the env / "envioment" argument work on Ti.Desktop in createProcess? I have no success with that:

Example

_env = Ti.fs.getApplicationDirectory().nativePath()+_SEP_+"Resources"+_SEP_+"app"+_SEP_+"libs"+_SEP_+"convert"+_SEP_;
var convert =  {
        args : ['convert.exe','-density','200',
        _tmpFile.nativePath(),
        _tmpFile.parent()+"\\"+_Filename +"-%d.png"],
        env: {'PATH': _env },
        environment : {'PATH': _env }
                    };
        var process = Titanium.Process.createProcess(convert);
the Documentation is a little bit confusing

http://developer.appcelerator.com/apidoc/desktop/latest/Titanium.Process.createProcess-method


Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>