Skip to content

Commit

Permalink
Merge pull request #2381 from darcys22/linux-icon
Browse files Browse the repository at this point in the history
configure desktop icon for linux appImages
  • Loading branch information
Bilb committed Jul 1, 2022
2 parents ed092e6 + 76a4de6 commit d663744
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ts/mains/main_node.ts
Expand Up @@ -13,6 +13,7 @@ import {
} from 'electron';

import path, { join } from 'path';
import { platform as osPlatform } from 'process';
import url from 'url';
import os from 'os';
import fs from 'fs';
Expand Down Expand Up @@ -291,8 +292,11 @@ 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:
(osPlatform === '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 d663744

Please sign in to comment.