Skip to content

Commit 70ec9f5

Browse files
committed
disable finder temporary
1 parent d6d130b commit 70ec9f5

1 file changed

Lines changed: 29 additions & 29 deletions

File tree

lib/main-app.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ function handleIpcEvent (payload) {
210210
}
211211

212212
function spawnFinder() {
213-
if (process.platform === 'darwin') {
214-
var finderArgv = [path.join(__dirname, 'finder-app.js'), '--finder']
215-
if (_.find(process.argv, a => a === '--hot')) finderArgv.push('--hot')
216-
finderProcess = ChildProcess
217-
.execFile(process.execPath, finderArgv)
218-
}
213+
// if (process.platform === 'darwin') {
214+
// var finderArgv = [path.join(__dirname, 'finder-app.js'), '--finder']
215+
// if (_.find(process.argv, a => a === '--hot')) finderArgv.push('--hot')
216+
// finderProcess = ChildProcess
217+
// .execFile(process.execPath, finderArgv)
218+
// }
219219
}
220220

221221
function quitApp () {
@@ -279,29 +279,29 @@ app.on('ready', function () {
279279
e.preventDefault()
280280
}
281281
})
282-
switch (process.platform) {
283-
case 'darwin':
284-
spawnFinder()
285-
break
286-
case 'win32':
287-
finderWindow = require('./finder-window')
288-
finderWindow.on('close', function (e) {
289-
if (appQuit) return true
290-
e.preventDefault()
291-
finderWindow.hide()
292-
})
293-
break
294-
case 'linux':
295-
if (process.env.DESKTOP_SESSION === 'cinnamon') {
296-
finderWindow = require('./finder-window')
297-
finderWindow.on('close', function (e) {
298-
if (appQuit) return true
299-
e.preventDefault()
300-
finderWindow.hide()
301-
})
302-
}
303-
// Do nothing.
304-
}
282+
// switch (process.platform) {
283+
// case 'darwin':
284+
// spawnFinder()
285+
// break
286+
// case 'win32':
287+
// finderWindow = require('./finder-window')
288+
// finderWindow.on('close', function (e) {
289+
// if (appQuit) return true
290+
// e.preventDefault()
291+
// finderWindow.hide()
292+
// })
293+
// break
294+
// case 'linux':
295+
// if (process.env.DESKTOP_SESSION === 'cinnamon') {
296+
// finderWindow = require('./finder-window')
297+
// finderWindow.on('close', function (e) {
298+
// if (appQuit) return true
299+
// e.preventDefault()
300+
// finderWindow.hide()
301+
// })
302+
// }
303+
// // Do nothing.
304+
// }
305305

306306
nodeIpc.server.start(function (err) {
307307
if (err.code === 'EADDRINUSE') {

0 commit comments

Comments
 (0)