Fix Linux icon
This commit is contained in:
@@ -31,6 +31,7 @@ let firstMountCheck = true;
|
||||
let manualMountDetection = {};
|
||||
|
||||
let isQuiting = false;
|
||||
|
||||
app.on('before-quit', function () {
|
||||
isQuiting = true;
|
||||
});
|
||||
@@ -66,6 +67,13 @@ function setWindowVisibility(show) {
|
||||
function createWindow() {
|
||||
loadUiSettings();
|
||||
|
||||
let extra = {};
|
||||
if (os.platform() === 'linux') {
|
||||
extra = {
|
||||
icon: path.join(__dirname, '../', 'icon.png'),
|
||||
}
|
||||
}
|
||||
|
||||
// Create the browser window.
|
||||
const height = (process.env.ELECTRON_START_URL || (os.platform() === 'darwin') ? 364 : 344) - ((os.platform() === 'win32') ? 0 : 20);
|
||||
mainWindow = new BrowserWindow({
|
||||
@@ -75,6 +83,7 @@ function createWindow() {
|
||||
resizable: false,
|
||||
show: !launchHidden,
|
||||
title: 'Repertory UI',
|
||||
...extra,
|
||||
webPreferences: {
|
||||
webSecurity: !process.env.ELECTRON_START_URL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user