Skip to content

Commit e2f5bb7

Browse files
committed
tweak the config to get things working (may need reverting)
1 parent bec9209 commit e2f5bb7

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ exports.create = (api) => {
2121
const pubkey = keys.id.slice(1).replace(`.${keys.curve}`, '')
2222

2323
config = merge(config, {
24-
connections: {
25-
incoming: { unix: [{ 'scope': 'local', 'transform': 'noauth' }] }
26-
},
27-
keys,
28-
remote: `unix:${Path.join(config.path, 'socket')}:~noauth:${pubkey}`
24+
keys
25+
// connections: {
26+
// incoming: { unix: [{ 'scope': 'local', 'transform': 'noauth' }] }
27+
// },
28+
// remote: `unix:${Path.join(config.path, 'socket')}:~noauth:${pubkey}`
2929
})
3030
}
3131
return config

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"patchbay-gatherings": "^3.2.8",
7575
"patchbay-poll": "^1.1.1",
7676
"patchbay-scry": "^1.3.1",
77-
"patchcore": "^1.28.1",
77+
"patchcore": "^1.28.3",
7878
"pull-abortable": "^4.1.1",
7979
"pull-next-query": "^1.0.0",
8080
"pull-notify": "^0.1.1",

server.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ const electron = require('electron')
44

55
// Get config options from depject
66
const config = require('./config').create().config.sync.load()
7+
const startFrontend = () => electron.ipcRenderer.send('server-started')
78

89
Client(config.keys, config, (err, server) => {
910
if (err) { // no server currently running
1011
console.log('> scuttle-shell: starting')
1112
scuttleshell.start({}, (startErr) => {
1213
if (startErr) return console.error('> scuttle-shell: failed to start', startErr)
1314

14-
electron.ipcRenderer.send('server-started')
15+
startFrontend()
1516
})
1617
} else {
1718
console.log('> scuttle-shell / sbot already running')
18-
electron.ipcRenderer.send('server-started')
1919
server.close() // close this connection (app starts one of its own)
20+
21+
startFrontend()
2022
}
2123
})

0 commit comments

Comments
 (0)