Skip to content

Commit

Permalink
configure desktop icon for linux appImages
Browse files Browse the repository at this point in the history
  • Loading branch information
darcys22 committed Jun 30, 2022
1 parent ed092e6 commit 6a5d270
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/mains/main_node.ts
Expand Up @@ -13,6 +13,7 @@ import {
} from 'electron';

import path, { join } from 'path';
import { platform } from 'process';
import url from 'url';
import os from 'os';
import fs from 'fs';
Expand Down Expand Up @@ -291,8 +292,9 @@ async function createWindow() {
nativeWindowOpen: true,
spellcheck: await getSpellCheckSetting(),
},
// only set icon for Linux, the executable one will be used by default for other platforms
icon: platform === 'linux' && path.join(getAppRootPath(), 'images/session/session_icon.png') || undefined,
...picked,
// don't setup icon, the executable one will be used by default
};

if (!_.isNumber(windowOptions.width) || windowOptions.width < minWidth) {
Expand Down

0 comments on commit 6a5d270

Please sign in to comment.