diff --git a/main.js b/main.js index 2efd3738..f4996caf 100644 --- a/main.js +++ b/main.js @@ -113,8 +113,10 @@ if (initialShowEventsComplete) { mainWindow.focus(); - mainWindow.resizable = false; - mainWindow.movable = false; + if (!require('is-linux')()) { + mainWindow.resizable = false; + mainWindow.movable = false; + } } } @@ -123,8 +125,10 @@ onWindowStateChanged('Normal'); if (initialShowEventsComplete) { - mainWindow.resizable = true; - mainWindow.movable = true; + if (!require('is-linux')()) { + mainWindow.resizable = true; + mainWindow.movable = true; + } } } @@ -811,7 +815,6 @@ require("fs").writeFileSync(windowStatePath, JSON.stringify(data)); } - sendJavascript('AppCloseHelper.onClosing();'); // Unregister all shortcuts. electron.globalShortcut.unregisterAll(); @@ -820,7 +823,6 @@ cecProcess.kill(); } - app.exit(); } function parseCommandLine() { @@ -918,7 +920,7 @@ // initialization and is ready to create browser windows. app.on('ready', function () { - var isWindows = require('is-windows'); + var islinux = require('is-linux')(); var windowStatePath = getWindowStateDataPath(); var previousWindowInfo; @@ -933,8 +935,8 @@ var windowOptions = { transparent: true, //supportsTransparency, frame: false, - resizable: !isfullscreen, - movable: !isfullscreen, + resizable: !isfullscreen || islinux, + movable: !isfullscreen || islinux, title: 'Emby Theater', minWidth: 720, minHeight: 480,