Démarrage des applications en mode daemon
Les applications sont désormais lancées en mode "détachées". Une limite "dure" de 2 secondes est appliquées pour l'animation de lancement sur les tuiles. Fixes #5
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
var Util = require('../../util');
|
||||
var logger = Util.Logger;
|
||||
var remote = require('electron').Remote;
|
||||
var LoggerStream = Util.LoggerStream;
|
||||
var remote = require('electron').remote;
|
||||
|
||||
var RUN_APP = exports.RUN_APP = 'RUN_APP';
|
||||
var RUN_APP_SUCCESS = exports.RUN_APP_SUCCESS = 'RUN_APP_SUCCESS';
|
||||
@ -14,7 +15,13 @@ exports.runApp = function(execPath) {
|
||||
|
||||
dispatch({ type: RUN_APP, execPath: execPath });
|
||||
|
||||
return Util.System.runApp(execPath, { clearFreeDesktopFlags: true })
|
||||
var opts = {
|
||||
clearFreeDesktopFlags: true,
|
||||
stdout: process.stdout,
|
||||
stderr: process.stderr
|
||||
}
|
||||
|
||||
return Util.System.runApp(execPath, opts)
|
||||
.then(function() {
|
||||
dispatch({ type: RUN_APP_SUCCESS, execPath: execPath });
|
||||
// Hypothetical fix
|
||||
|
Reference in New Issue
Block a user