Merge pull request #2777 from MartinFournier/feat/electron-linux-icon

Add missing steam app icon for linux
This commit is contained in:
hydroflame 2022-01-26 00:40:18 -05:00 committed by GitHub
commit 862835e452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,14 @@ const debug = process.argv.includes("--debug");
async function createWindow(killall) { async function createWindow(killall) {
const setStopProcessHandler = global.app_handlers.stopProcess; const setStopProcessHandler = global.app_handlers.stopProcess;
let icon;
if (process.platform == 'linux') {
icon = path.join(__dirname, 'icon.png');
}
const window = new BrowserWindow({ const window = new BrowserWindow({
icon,
show: false, show: false,
backgroundThrottling: false, backgroundThrottling: false,
backgroundColor: "#000000", backgroundColor: "#000000",