Browse Source

Fixed Terminal opening in macOS

Fixes #411
v0.5.8
Ramiro Saenz 8 years ago
parent
commit
3cb51e9c59
  1. 2
      app/package.json
  2. 6
      electron/main.js
  3. 2
      package.json

2
app/package.json

@ -29,7 +29,7 @@
"author": "Ramiro Saenz <saenzramiro@gmail.com>", "author": "Ramiro Saenz <saenzramiro@gmail.com>",
"license": "GPL-3.0", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"auto-launch": "4.0.0", "auto-launch-patched": "5.0.2",
"tmp": "0.0.28", "tmp": "0.0.28",
"mime": "^1.3.4", "mime": "^1.3.4",
"electron-is-dev": "^0.1.1", "electron-is-dev": "^0.1.1",

6
electron/main.js

@ -6,7 +6,7 @@ const appMenu = require('./menu');
// Tray // Tray
const tray = require('./tray'); const tray = require('./tray');
// AutoLaunch // AutoLaunch
var AutoLaunch = require('auto-launch'); var AutoLaunch = require('auto-launch-patched');
// Configuration // Configuration
const Config = require('electron-config'); const Config = require('electron-config');
// Development // Development
@ -43,8 +43,8 @@ const config = new Config({
// Configure AutoLaunch // Configure AutoLaunch
const appLauncher = new AutoLaunch({ const appLauncher = new AutoLaunch({
name: process.platform === 'darwin' ? 'Rambox.app' : 'Rambox' name: 'Rambox'
,isHiddenOnLaunch: config.get('start_minimized') ,isHidden: config.get('start_minimized')
}); });
config.get('auto_launch') && !isDev ? appLauncher.enable() : appLauncher.disable(); config.get('auto_launch') && !isDev ? appLauncher.enable() : appLauncher.disable();

2
package.json

@ -93,7 +93,7 @@
"spectron": "3.4.0" "spectron": "3.4.0"
}, },
"dependencies": { "dependencies": {
"auto-launch": "4.0.0", "auto-launch-patched": "5.0.2",
"tmp": "0.0.28", "tmp": "0.0.28",
"mime": "^1.3.4", "mime": "^1.3.4",
"electron-is-dev": "^0.1.1", "electron-is-dev": "^0.1.1",

Loading…
Cancel
Save