diff --git a/app/launcher/index.html b/app/launcher/index.html
index 3f45ecf3..9bd540f4 100644
--- a/app/launcher/index.html
+++ b/app/launcher/index.html
@@ -13,17 +13,17 @@
-
+
+
+
-
-
-
-
+
+
diff --git a/src/client/editor/index.js b/src/client/editor/index.js
index cbb2b18f..b7136a44 100644
--- a/src/client/editor/index.js
+++ b/src/client/editor/index.js
@@ -324,7 +324,7 @@ class Editor {
enable() {
- if (READ_ONLY) return
+ if (READ_ONLY || sessionManager.session === null) return
this.enabled = true
diff --git a/src/client/index.js b/src/client/index.js
index 8bff454b..b33a3d29 100644
--- a/src/client/index.js
+++ b/src/client/index.js
@@ -1,8 +1,7 @@
require('./stacktrace')
require('./globals')
-var uiLoading = require('./ui/ui-loading'),
- locales = require('./locales'),
+var locales = require('./locales'),
html = require('nanohtml')
document.addEventListener('DOMContentLoaded', function(event) {
@@ -11,7 +10,8 @@ document.addEventListener('DOMContentLoaded', function(event) {
DOM.init()
- LOADING = uiLoading(locales('loading_server'))
+ var uiLoading = require('./ui/ui-loading')
+ uiLoading(locales('loading_server'))
setTimeout(()=>{
diff --git a/src/client/ipc/callbacks.js b/src/client/ipc/callbacks.js
index 6484e594..b6c50808 100644
--- a/src/client/ipc/callbacks.js
+++ b/src/client/ipc/callbacks.js
@@ -7,6 +7,7 @@ var utils = require('../ui/utils'),
locales = require('../locales'),
{deepCopy} = require('../utils'),
UiModal = require('../ui/ui-modal'),
+ uiLoading = require('../ui/ui-loading'),
notifications = require('../ui/notifications'),
{TRAVERSING_SAMEWIDGET} = require('../events/utils'),
raw = require('nanohtml/raw'),
@@ -25,7 +26,7 @@ module.exports = {
},
connected:function(){
- LOADING.close()
+ uiLoading(false)
},
sessionOpen: function(data){
diff --git a/src/client/managers/session.js b/src/client/managers/session.js
index 3ee12f90..27607d15 100644
--- a/src/client/managers/session.js
+++ b/src/client/managers/session.js
@@ -35,8 +35,9 @@ var SessionManager = class SessionManager {
this.lock = true
- var container = DOM.get('#osc-container')[0],
- loader = uiLoading(locales('loading_session'))
+ var container = DOM.get('#osc-container')[0]
+
+ uiLoading(locales('loading_session'))
setTimeout(()=>{
try {
@@ -59,7 +60,7 @@ var SessionManager = class SessionManager {
DOM.get(document, '#osc-greeting-header')[0].classList.add('hidden')
} catch (err) {
- loader.close()
+ uiLoading(false)
new UiModal({title: locales('session_parsingerror'), content: err.message, icon: 'exclamation-triangle', closable:true})
this.lock = false
ipc.send('sessionSetPath', {path: this.sessionPath})
@@ -82,7 +83,7 @@ var SessionManager = class SessionManager {
DOM.dispatchEvent(window, 'resize')
setTimeout(()=>{
- loader.close()
+ uiLoading(false)
this.lock = false
editor.unsavedSession = false
this.setSessionPath('')
diff --git a/src/client/ui/notifications.js b/src/client/ui/notifications.js
index 6557b6ec..22a106a6 100644
--- a/src/client/ui/notifications.js
+++ b/src/client/ui/notifications.js
@@ -28,6 +28,7 @@ class Toast {
if (this.html) {
this.html = morph(this.html, toast)
+ this.html.style.height = this.html.offsetHeight + 'px'
} else {
this.html = toast
}
diff --git a/src/client/ui/ui-loading.js b/src/client/ui/ui-loading.js
index 2193c687..4a943526 100644
--- a/src/client/ui/ui-loading.js
+++ b/src/client/ui/ui-loading.js
@@ -1,12 +1,24 @@
var html = require('nanohtml'),
- UiModal = require('./ui-modal')
+ UiModal = require('./ui-modal'),
+ notifications = require('./notifications'),
+ loading = null, timeout = null
module.exports = function uiLoading(title) {
-
- return new UiModal({
- title: title,
- content: html``,
- closable: false
- })
+
+ if (title === false && loading) {
+ clearTimeout(timeout)
+ timeout = setTimeout(()=>{
+ console.log('stop')
+ notifications.remove(loading)
+ loading = null
+ }, 500)
+ } else if (title !== false) {
+ notifications.add({
+ id: 'LOADING',
+ icon: 'spinner fa-spin',
+ message: title
+ })
+ loading = notifications.toasts[notifications.toasts.length - 1]
+ }
}
diff --git a/src/client/ui/ui-sidepanel.js b/src/client/ui/ui-sidepanel.js
index 90853e29..c1711f51 100644
--- a/src/client/ui/ui-sidepanel.js
+++ b/src/client/ui/ui-sidepanel.js
@@ -8,8 +8,8 @@ class UiSidePanel extends UiWidget {
if (options.label) DOM.get(this.container, 'osc-panel-header')[0].textContent = options.label
- this.vertical = this.container.classList.contains('bottom') || this.container.classList.contains('tpop')
- this.resizeDirection = this.container.classList.contains('left') ? 1 : -1
+ this.vertical = this.container.classList.contains('bottom') || this.container.classList.contains('top')
+ this.resizeDirection = this.container.classList.contains('left') || this.container.classList.contains('top') ? 1 : -1
this.resizeHandle = DOM.get(this.container, '.resize-handle')[0]
this.toggleButton = DOM.get(this.container, '.toggle-button')[0]
this.content = DOM.get(this.container, 'osc-panel-content')[0]
@@ -21,6 +21,13 @@ class UiSidePanel extends UiWidget {
this.minimized = false
this.init = false
+
+ this.on('draginit', (event)=>{
+
+ this.width = parseInt(this.container[this.vertical ? 'offsetHeight' : 'offsetWidth']) / PXSCALE
+
+ }, {element: this.resizeHandle})
+
this.on('drag', (event)=>{
this.width += this.resizeDirection * event[this.vertical ? 'movementY' : 'movementX'] / PXSCALE
diff --git a/src/client/widgets/containers/panel.js b/src/client/widgets/containers/panel.js
index e4b64e8d..46009e79 100644
--- a/src/client/widgets/containers/panel.js
+++ b/src/client/widgets/containers/panel.js
@@ -129,6 +129,8 @@ class Panel extends Container() {
} else if (this.getProp('widgets') && this.getProp('widgets').length) {
+ this.value = -1
+
this.childrenType = 'widget'
this.children = options.children || new Array(this.getProp('widgets').length)
diff --git a/src/launcher/settings.js b/src/launcher/settings.js
index 2bf0864b..0d8438d1 100644
--- a/src/launcher/settings.js
+++ b/src/launcher/settings.js
@@ -8,7 +8,6 @@ var {remote, ipcRenderer, shell} = eval('require(\'electron\')'),
terminal = require('./terminal'),
argv_remote = settings.read('argv')
-
class Settings {
constructor() {
@@ -32,7 +31,7 @@ class Settings {
fs.writeFile(this.configPath, JSON.stringify(this.argv), (err, fdata)=>{
if (err) console.error(err)
- else terminal.log('Config saved in ' + this.configPath)
+ else terminal.log('(INFO) Config saved in ' + this.configPath)
})
@@ -63,7 +62,7 @@ class Settings {
this.argv = JSON.parse(fs.readFileSync(file.filePaths[0], 'utf-8'))
this.create()
this.write()
- terminal.log('Config loaded from ' + file.filePaths[0])
+ terminal.log('(INFO) Config loaded from ' + file.filePaths[0])
this.configPath = file.filePaths[0]
})
@@ -179,8 +178,10 @@ class Settings {
}
if (fail || v !== '' && data.check && data.check(v, this.argv) !== true) {
- field.classList.add('error')
- terminal.log(`(ERROR) --${name}: ${fail || data.check(v, this.argv)}`, 'error')
+ if (!field.classList.contains('error')) {
+ field.classList.add('error')
+ terminal.log(`(ERROR) --${name}: ${fail || data.check(v, this.argv)}`, 'error')
+ }
} else {
field.classList.remove('error')
this.argv[name] = v
@@ -189,7 +190,7 @@ class Settings {
if (data.restart && !field.classList.contains('restart') && v != value) {
field.classList.add('restart')
field.classList.add('warning')
- terminal.log(`(WARNING) --${name}: The app must be restarted for this change to take effect.`, 'warning')
+ terminal.log(`(WARNING) --${name}: The launcher must be restarted for this change to take effect.`, 'warning')
} else if (data.restart && field.classList.contains('restart') && v == value) {
field.classList.remove('restart')
field.classList.remove('warning')
@@ -223,6 +224,15 @@ class Settings {
}
+ enable() {
+
+ this.container.classList.remove('disabled')
+ DOM.each(this.container, 'input', (el)=>{
+ el.removeAttribute('disabled')
+ })
+
+ }
+
}
module.exports = new Settings()
diff --git a/src/launcher/terminal.js b/src/launcher/terminal.js
index eda571f6..e59c23f2 100644
--- a/src/launcher/terminal.js
+++ b/src/launcher/terminal.js
@@ -1,20 +1,16 @@
-var UiSidePanel = require('../client/ui/ui-sidepanel'),
- {ipcRenderer} = eval('require(\'electron\')'),
+var {ipcRenderer} = eval('require(\'electron\')'),
ansiHTML = require('ansi-html'),
html = require('nanohtml')
-class Terminal extends UiSidePanel {
+class Terminal {
constructor(options) {
- super(options)
-
+ this.content = DOM.get(options.selector)[0]
this.autoSroll = true
this.length = 0
this.maxLength = 500
- this.enable()
-
ipcRenderer.on('stdout', (e, msg)=>{
this.log(ansiHTML(msg), 'log')
})
@@ -59,4 +55,4 @@ class Terminal extends UiSidePanel {
}
-module.exports = new Terminal({selector: 'osc-panel-container.bottom', size: 200})
+module.exports = new Terminal({selector: '#osc-terminal'})
diff --git a/src/launcher/toolbar.js b/src/launcher/toolbar.js
index 7a9a8b3b..6e4da875 100644
--- a/src/launcher/toolbar.js
+++ b/src/launcher/toolbar.js
@@ -6,22 +6,31 @@ var {remote, ipcRenderer, shell} = eval('require(\'electron\')'),
settings = require('./settings'),
midilist = remote.getGlobal('midilist')
-menu.append(new MenuItem({
+
+var start = new MenuItem({
label: 'Start',
click: ()=>{
ipcRenderer.send('start')
settings.disable()
- menu.items[0].visible = false
- menu.items[1].visible = true
}
-}))
-menu.append(new MenuItem({
+})
+var stop = new MenuItem({
+ label: 'Stop',
+ click: ()=>{
+ ipcRenderer.send('stop')
+ settings.enable()
+ }
+})
+var newWindow = new MenuItem({
label: 'New window',
visible: false,
click: ()=>{
ipcRenderer.send('openClient')
}
-}))
+})
+menu.append(start)
+menu.append(stop)
+menu.append(newWindow)
menu.append(new MenuItem({
type: 'separator'
}))
@@ -91,6 +100,10 @@ class Toolbar {
this.container.addEventListener('click', (e)=>{
this.container.classList.add('on')
+ var serverProcess = remote.getGlobal('serverProcess')
+ start.visible = !serverProcess
+ stop.visible = !!serverProcess
+ newWindow.visible = !!serverProcess
menu.popup({window: remote.getCurrentWindow(), x: parseInt(PXSCALE), y: parseInt(40 * PXSCALE)})
})
diff --git a/src/python/head.py b/src/python/head.py
index 89401def..6077beeb 100644
--- a/src/python/head.py
+++ b/src/python/head.py
@@ -23,8 +23,8 @@ try:
out_dev = rtmidi.MidiOut(API, 'OSC->MIDI probe')
except:
- ipc_send('log', '(ERROR, MIDI) python-rtmidi not found (or wrong version)\nRunning with python version %s' % version)
- ipc_send('log', '\nGet python-rtmidi at https://spotlightkid.github.io/python-rtmidi/')
+ ipc_send('log', '(ERROR, MIDI) python-rtmidi not found (or wrong version) (running with python %s)' % ".".join(map(str, version_info[:3])))
+ ipc_send('log', '(INFO, MIDI) Get python-rtmidi at https://spotlightkid.github.io/python-rtmidi/')
exit()
if version_info.major == 3:
diff --git a/src/scss/index.scss b/src/scss/index.scss
index 690f058b..94370b9f 100644
--- a/src/scss/index.scss
+++ b/src/scss/index.scss
@@ -34,6 +34,7 @@ html, body {
position:relative;
overflow:hidden;
overscroll-behavior: none;
+ background-color: var(--color-background);
}
html{
diff --git a/src/scss/ui/launcher.scss b/src/scss/ui/launcher.scss
index a8ca431c..24663df1 100644
--- a/src/scss/ui/launcher.scss
+++ b/src/scss/ui/launcher.scss
@@ -21,11 +21,12 @@ $warning: rgb(209, 154, 47);
flex-direction: column;
- osc-panel-container.center {
+ osc-panel-container.main {
background-color: var(--color-background);
min-height: 0;
+ min-height: 40rem;
osc-panel-content {
- padding: 12rem 8rem 8rem;
+ padding: 8rem;
}
}
osc-panel-content {
@@ -34,7 +35,10 @@ $warning: rgb(209, 154, 47);
}
osc-panel-container.bottom {
+ flex: 1;
padding: 12rem 8rem;
+ min-height: 100rem;
+
&.minimized {
padding: 0;
}
@@ -45,20 +49,13 @@ $warning: rgb(209, 154, 47);
--color-background: --color-ui-background; // scrollbar
}
- .toggle-button {
- display: none;
- }
-
}
osc-settings {
- // flex: 1;
+
display: grid;
grid-template-columns: repeat(2, 1fr);
- &.disabled {
- pointer-events: none;
- }
}
osc-settings-field {
display: flex;
@@ -83,6 +80,11 @@ osc-settings-field {
padding: 0 4rem;
width: 100rem;
}
+ [disabled], [disabled] ~ * {
+ pointer-events: none;
+ opacity: 0.75!important;
+
+ }
&.error label {
color: $error;
@@ -124,7 +126,7 @@ osc-settings-checkbox, osc-settings-reset, osc-settings-file {
}
#osc-terminal {
-
+ flex: 1;
line-height: 18rem;
user-select:text;
cursor: auto;
diff --git a/src/scss/ui/workspaces.scss b/src/scss/ui/workspaces.scss
index bb1033a8..73c6c1ca 100644
--- a/src/scss/ui/workspaces.scss
+++ b/src/scss/ui/workspaces.scss
@@ -54,7 +54,7 @@ osc-panel-container {
left: -1rem;
}
- &.bottom {
+ &.bottom, &.top {
z-index: 2;
min-height: 0;
height: 0;
@@ -68,8 +68,10 @@ osc-panel-container {
right: 0;
z-index: 1;
}
-
-
+ &.top:after {
+ bottom: -1rem;
+ top: auto;
+ }
}
.resize-handle {
@@ -93,6 +95,15 @@ osc-panel-container {
width: auto;
cursor: ns-resize;
}
+ &.top {
+ top: auto;
+ bottom:0;
+ left:0;
+ right:0;
+ height: 4rem;
+ width: auto;
+ cursor: ns-resize;
+ }
}
.toggle-button {
@@ -164,6 +175,29 @@ osc-panel-container {
}
}
+ &.top {
+ border-bottom-left-radius: 25rem;
+ border-bottom-right-radius: 25rem;
+ top: auto;
+ bottom: -25rem;
+ height: 25rem;
+ width: 50rem;
+ left: 50%;
+ margin-left: -25rem;
+ margin-top: 0;
+ cursor: pointer;
+ transform: translateY(- 25rem);
+
+ &:after {
+ content:"\f106";
+ margin-bottom: 2rem;
+ width: 50rem;
+ height: 25rem;
+ line-height: 25rem;
+
+ }
+ }
+
}
&:hover .toggle-button, .toggle-button:hover {
@@ -185,6 +219,9 @@ osc-panel-container {
&.bottom:after {
content:"\f106";
}
+ &.top:after {
+ content:"\f107";
+ }
}
&.disabled .toggle-button {
diff --git a/src/server/electron-window.js b/src/server/electron-window.js
index f2e394b5..74370814 100644
--- a/src/server/electron-window.js
+++ b/src/server/electron-window.js
@@ -57,13 +57,11 @@ module.exports = function(options={}) {
shell.openExternal(url)
})
- if (options.fullscreen) {
- window.webContents.on('dom-ready', ()=>{
- window.webContents.executeJavaScript(`
- window.ELECTRON_FULLSCREEN = true
- `)
- })
- }
+ // window.webContents.on('dom-ready', ()=>{
+ // window.webContents.executeJavaScript(`
+ // window.ELECTRON = true
+ // `)
+ // })
if (options.zoom === false) {
window.webContents.setVisualZoomLevelLimits(1, 1)
diff --git a/src/server/index.js b/src/server/index.js
index a5a4da1d..80c44788 100644
--- a/src/server/index.js
+++ b/src/server/index.js
@@ -7,7 +7,7 @@ var serverStarted
function nodeMode() {
- console.warn('Running with node')
+ console.warn('(INFO) Running with node')
if (!settings.read('noGui')) {
settings.cli = true
@@ -71,6 +71,9 @@ function openClient() {
var launch = ()=>{
var win = require('./electron-window')({address:address, shortcuts:true, zoom:false, fullscreen: settings.read('fullScreen')})
+ win.on('error', ()=>{
+ console.log('ERR')
+ })
return win
}
if (app.isReady()) {
@@ -96,11 +99,18 @@ if (settings.cli) {
path = require('path'),
address = 'file://' + path.resolve(__dirname + '/../launcher/' + 'index.html'),
{ipcMain} = require('electron'),
+ {spawn} = require('child_process'),
launcher
+ process.on('exit',()=>{
+ if (global.serverProcess) global.serverProcess.kill()
+ })
+
app.on('ready',function(){
global.settings = settings
global.midilist = require('./midi').list
+ global.serverProcess = null
+ global.clientWindows = []
launcher = require('./electron-window')({address:address, shortcuts:dev, width:680, height:(40 + 200 + 20 + 24 * Object.keys(settings.options).filter(x=>settings.options[x].launcher !== false).length / 2), node:true, color:'#151a24'})
launcher.on('close', ()=>{
process.stdout.write = stdoutWrite
@@ -132,15 +142,53 @@ if (settings.cli) {
ipcMain.on('start',function(e, options){
- start()
- if (!settings.read('noGui')) openClient()
+ var args = ['--no-gui']
+ for (var k in settings.read('argv')) {
+ args.push('--' + k)
+ var val = settings.read('argv')[k]
+ if (typeof val === 'object') {
+ args = args.concat(val)
+ } else if (typeof val !== 'boolean') {
+ args.push(val)
+ }
+ }
+ global.serverProcess = spawn(process.argv[0], process.argv.slice(1).concat(args), {stdio: 'pipe'/*, env: {"ELECTRON_RUN_AS_NODE":"1"}*/})
+
+ if (!settings.read('noGui')) {
+ global.serverProcess.stdout.once('data', (data) => {
+ global.clientWindows.push(openClient())
+ })
+ }
+
+ global.serverProcess.stdout.on('data', (data) => {
+ console.log(String(data).trim())
+ })
+
+ global.serverProcess.stderr.on('data', (data) => {
+ console.error(String(data).trim())
+ })
+
+ global.serverProcess.on('close', (code) => {
+ console.log('(INFO) Server stopped')
+ global.serverProcess = null
+ if (global.defaultClient) global.defaultClient.close()
+ })
})
+ ipcMain.on('stop',function(e, options){
+
+ if (global.serverProcess) global.serverProcess.kill()
+ for (var w of [...global.clientWindows]) {
+ if (w && !w.isDestroyed()) w.close()
+ }
+ global.clientWindows = []
+
+ })
ipcMain.on('openClient',function(e, options){
- openClient()
+ global.clientWindows.push(openClient())
})
diff --git a/src/server/midi.js b/src/server/midi.js
index 22a89b12..2648caa7 100644
--- a/src/server/midi.js
+++ b/src/server/midi.js
@@ -20,6 +20,14 @@ class MidiConverter {
pythonPath
}, pythonOptions))
+ this.py.childProcess.on('error', (e)=>{
+ if (e.code === 'ENOENT') {
+ console.error(`(ERROR, MIDI) Could not find python binary: ${e.message.replace(/spawn (.*) ENOENT/, '$1')}`)
+ } else {
+ console.error(`(ERROR, MIDI) ${e.message}`)
+ }
+ })
+
}
send(data) {
@@ -58,7 +66,7 @@ class MidiConverter {
// console.log(err)
}
if (name == 'log') {
- if (data.indexOf('ERROR') === 0) {
+ if (data.indexOf('ERROR') > -1) {
console.error(data)
} else {
console.log(data)
@@ -76,8 +84,15 @@ class MidiConverter {
var pythonPath = settings.read('midi') ? settings.read('midi').filter(x=>x.includes('path=')).map(x=>x.split('=')[1])[0] : undefined
- PythonShell.run('python/list.py', Object.assign({pythonPath}, pythonOptions), function(err, results) {
- if (err) console.error(err)
+ PythonShell.run('python/list.py', Object.assign({pythonPath}, pythonOptions), function(e, results) {
+ if (e) {
+ if (e.code === 'ENOENT') {
+ console.error(`(ERROR, MIDI) Could not find python binary: ${e.message.replace(/spawn (.*) ENOENT/, '$1')}`)
+ } else {
+ console.error(`(ERROR, MIDI) ${e.message}`)
+ }
+ }
+
MidiConverter.parseIpc(results)
})
diff --git a/src/server/options.js b/src/server/options.js
index 6386c67e..c6a8dcd7 100644
--- a/src/server/options.js
+++ b/src/server/options.js
@@ -7,7 +7,6 @@ module.exports = {
},
'l':{alias:'load',type:'string',file:{name:'OSC Session (.json)', extensions: ['json', 'js']},describe:'session file to load'},
'state':{type:'string',file:{name:'OSC State (.state)', extensions: ['state']},describe:'state file to load'},
- // 'b':{alias:'blank',type:'boolean',describe:'load a blank session and start the editor'},
'c':{alias:'custom-module',type:'array',file:{name:'OSC Custom module (.js)', extensions: ['js']},describe:'custom module file to load (custom options can be passed after the filename)'},
'p':{alias:'port',type:'number',describe:'http port of the server (default to 8080)',
check: (p)=>{
@@ -44,19 +43,7 @@ module.exports = {
true : 'no-gui and gui-only can\'s be enabled simultaneously'
}
},
- // 'g':{alias:'gui-only',type:'string',describe:'app server\'s url. If true, local port (--port) is used',
- // check: (g,argv)=>{
- // return (!g || !argv.n) ?
- // true : 'no-gui and gui-only can\'s be enabled simultaneously'
- // }
- // },
't':{alias:'theme',type:'array',describe:'theme name or path (mutliple values allowed)'},
- // 'e':{alias:'examples',type:'boolean',describe:'list examples instead of recent sessions',
- // check: (e,argv)=>{
- // return (!e || !argv.l) ?
- // true : 'examples can\'t be listed if --load is set'
- // }
- // },
'url-options':{type:'array',describe:'url options (opt=value pairs)',
check: (u, argv)=>{
return (!u || !argv.n) ?
diff --git a/src/server/osc/index.js b/src/server/osc/index.js
index 458be4cb..68848432 100644
--- a/src/server/osc/index.js
+++ b/src/server/osc/index.js
@@ -36,7 +36,7 @@ class OscServer {
try {
return fs.readFileSync(customModule[0], 'utf8')
} catch(err) {
- console.log('(ERROR) Custom module not found: ' + customModule[0])
+ console.error('(ERROR) Custom module not found: ' + customModule[0])
return false
}
})(),
diff --git a/src/server/server.js b/src/server/server.js
index 332a3844..f5fa1818 100644
--- a/src/server/server.js
+++ b/src/server/server.js
@@ -92,7 +92,7 @@ function httpCheck(ok){
clearTimeout(httpCheckTimeout)
httpCheckTimeout = null
if (ok) {
- console.log('(INFO) App available at ' + appAddresses.join(' & '))
+ console.log('(INFO) Server started, app available at \n ' + appAddresses.join('\n '))
} else {
console.error('(ERROR, HTTP) Could not setup http server, maybe try a different port ?')
}
diff --git a/src/server/settings.js b/src/server/settings.js
index f131cea1..425df32f 100644
--- a/src/server/settings.js
+++ b/src/server/settings.js
@@ -59,7 +59,7 @@ var baseDir = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'
defaultConfig
if (!configPath) {
- console.warn('Home directory not found, settings and session history will not be saved.')
+ console.warn('(WARNING) Home directory not found, settings and session history will not be saved.')
}