mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
disable finder temporary
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user