Browse Source

Autolaunch on mac OS

#449 #411
pull/591/head
Ramiro Saenz 8 years ago
parent
commit
c2dfe4ebd5
  1. 8
      electron/main.js

8
electron/main.js

@ -23,9 +23,9 @@ const config = new Config({
always_on_top: false always_on_top: false
,hide_menu_bar: false ,hide_menu_bar: false
,skip_taskbar: true ,skip_taskbar: true
,auto_launch: !isDev, ,auto_launch: !isDev
window_close_behavior: 'keep_in_tray', ,window_close_behavior: 'keep_in_tray'
start_minimized: false ,start_minimized: false
,systemtray_indicator: true ,systemtray_indicator: true
,master_password: false ,master_password: false
,disable_gpu: process.platform === 'linux' ,disable_gpu: process.platform === 'linux'
@ -43,7 +43,7 @@ const config = new Config({
// Configure AutoLaunch // Configure AutoLaunch
const appLauncher = new AutoLaunch({ const appLauncher = new AutoLaunch({
name: 'Rambox.app' name: process.platform === 'darwin' ? 'Rambox.app' : 'Rambox'
,isHiddenOnLaunch: config.get('start_minimized') ,isHiddenOnLaunch: config.get('start_minimized')
}); });
config.get('auto_launch') && !isDev ? appLauncher.enable() : appLauncher.disable(); config.get('auto_launch') && !isDev ? appLauncher.enable() : appLauncher.disable();

Loading…
Cancel
Save