1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56: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() { function spawnFinder() {
if (process.platform === 'darwin') { // if (process.platform === 'darwin') {
var finderArgv = [path.join(__dirname, 'finder-app.js'), '--finder'] // var finderArgv = [path.join(__dirname, 'finder-app.js'), '--finder']
if (_.find(process.argv, a => a === '--hot')) finderArgv.push('--hot') // if (_.find(process.argv, a => a === '--hot')) finderArgv.push('--hot')
finderProcess = ChildProcess // finderProcess = ChildProcess
.execFile(process.execPath, finderArgv) // .execFile(process.execPath, finderArgv)
} // }
} }
function quitApp () { function quitApp () {
@@ -279,29 +279,29 @@ app.on('ready', function () {
e.preventDefault() e.preventDefault()
} }
}) })
switch (process.platform) { // switch (process.platform) {
case 'darwin': // case 'darwin':
spawnFinder() // spawnFinder()
break // break
case 'win32': // case 'win32':
finderWindow = require('./finder-window') // finderWindow = require('./finder-window')
finderWindow.on('close', function (e) { // finderWindow.on('close', function (e) {
if (appQuit) return true // if (appQuit) return true
e.preventDefault() // e.preventDefault()
finderWindow.hide() // finderWindow.hide()
}) // })
break // break
case 'linux': // case 'linux':
if (process.env.DESKTOP_SESSION === 'cinnamon') { // if (process.env.DESKTOP_SESSION === 'cinnamon') {
finderWindow = require('./finder-window') // finderWindow = require('./finder-window')
finderWindow.on('close', function (e) { // finderWindow.on('close', function (e) {
if (appQuit) return true // if (appQuit) return true
e.preventDefault() // e.preventDefault()
finderWindow.hide() // finderWindow.hide()
}) // })
} // }
// Do nothing. // // Do nothing.
} // }
nodeIpc.server.start(function (err) { nodeIpc.server.start(function (err) {
if (err.code === 'EADDRINUSE') { if (err.code === 'EADDRINUSE') {