summaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/index.js b/src/index.js
index f82bb3590..897943a85 100644
--- a/src/index.js
+++ b/src/index.js
@@ -4,7 +4,7 @@ import path from 'path';
4 4
5import windowStateKeeper from 'electron-window-state'; 5import windowStateKeeper from 'electron-window-state';
6 6
7import { isDevMode, isWindows } from './environment'; 7import { isDevMode, isMac, isWindows, isLinux } from './environment';
8import ipcApi from './electron/ipc-api'; 8import ipcApi from './electron/ipc-api';
9import Tray from './lib/Tray'; 9import Tray from './lib/Tray';
10import Settings from './electron/Settings'; 10import Settings from './electron/Settings';
@@ -18,8 +18,8 @@ let mainWindow;
18let willQuitApp = false; 18let willQuitApp = false;
19 19
20// Ensure that the recipe directory exists 20// Ensure that the recipe directory exists
21fs.ensureDir(path.join(app.getPath('userData'), 'recipes'));
22fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp')); 21fs.emptyDirSync(path.join(app.getPath('userData'), 'recipes', 'temp'));
22fs.ensureFileSync(path.join(app.getPath('userData'), 'window-state.json'));
23 23
24// Set App ID for Windows 24// Set App ID for Windows
25if (isWindows) { 25if (isWindows) {
@@ -48,11 +48,11 @@ if (isSecondInstance) {
48 app.exit(); 48 app.exit();
49} 49}
50 50
51// Lets disable Hardware Acceleration until we have a better solution 51// Fix Unity indicator issue
52// to deal with the high-perf-gpu requirement of some services 52// https://github.com/electron/electron/issues/9046
53 53if (isLinux && ['Pantheon', 'Unity:Unity7'].indexOf(process.env.XDG_CURRENT_DESKTOP) !== -1) {
54// Disabled to test tweetdeck glitches 54 process.env.XDG_CURRENT_DESKTOP = 'Unity';
55// app.disableHardwareAcceleration(); 55}
56 56
57// Initialize Settings 57// Initialize Settings
58const settings = new Settings(); 58const settings = new Settings();
@@ -72,9 +72,9 @@ const createWindow = () => {
72 height: mainWindowState.height, 72 height: mainWindowState.height,
73 minWidth: 600, 73 minWidth: 600,
74 minHeight: 500, 74 minHeight: 500,
75 titleBarStyle: 'hidden', 75 titleBarStyle: isMac ? 'hidden' : '',
76 frame: isLinux,
76 backgroundColor: '#3498db', 77 backgroundColor: '#3498db',
77 autoHideMenuBar: true,
78 }); 78 });
79 79
80 // Initialize System Tray 80 // Initialize System Tray