1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

disable finder temporary

This commit is contained in:
Dick Choi
2016-07-22 08:45:13 +09:00
parent d6d130b8f9
commit 70ec9f50ab

View File

@@ -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') {