From 70ec9f50ab505ba8947a0e8c5f14e39b24fe281e Mon Sep 17 00:00:00 2001 From: Dick Choi Date: Fri, 22 Jul 2016 08:45:13 +0900 Subject: [PATCH] disable finder temporary --- lib/main-app.js | 58 ++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/lib/main-app.js b/lib/main-app.js index 40a8b73c..991552cb 100644 --- a/lib/main-app.js +++ b/lib/main-app.js @@ -210,12 +210,12 @@ function handleIpcEvent (payload) { } function spawnFinder() { - if (process.platform === 'darwin') { - var finderArgv = [path.join(__dirname, 'finder-app.js'), '--finder'] - if (_.find(process.argv, a => a === '--hot')) finderArgv.push('--hot') - finderProcess = ChildProcess - .execFile(process.execPath, finderArgv) - } + // if (process.platform === 'darwin') { + // var finderArgv = [path.join(__dirname, 'finder-app.js'), '--finder'] + // if (_.find(process.argv, a => a === '--hot')) finderArgv.push('--hot') + // finderProcess = ChildProcess + // .execFile(process.execPath, finderArgv) + // } } function quitApp () { @@ -279,29 +279,29 @@ app.on('ready', function () { e.preventDefault() } }) - switch (process.platform) { - case 'darwin': - spawnFinder() - break - case 'win32': - finderWindow = require('./finder-window') - finderWindow.on('close', function (e) { - if (appQuit) return true - e.preventDefault() - finderWindow.hide() - }) - break - case 'linux': - if (process.env.DESKTOP_SESSION === 'cinnamon') { - finderWindow = require('./finder-window') - finderWindow.on('close', function (e) { - if (appQuit) return true - e.preventDefault() - finderWindow.hide() - }) - } - // Do nothing. - } + // switch (process.platform) { + // case 'darwin': + // spawnFinder() + // break + // case 'win32': + // finderWindow = require('./finder-window') + // finderWindow.on('close', function (e) { + // if (appQuit) return true + // e.preventDefault() + // finderWindow.hide() + // }) + // break + // case 'linux': + // if (process.env.DESKTOP_SESSION === 'cinnamon') { + // finderWindow = require('./finder-window') + // finderWindow.on('close', function (e) { + // if (appQuit) return true + // e.preventDefault() + // finderWindow.hide() + // }) + // } + // // Do nothing. + // } nodeIpc.server.start(function (err) { if (err.code === 'EADDRINUSE') {