rexy712-overlay/net-im/riot-web/files/riot-1.5.6-icon-path.patch
2019-12-16 13:43:32 -08:00

13 lines
653 B
Diff

diff -Naur a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js
--- a/electron_app/src/electron-main.js 2019-12-16 11:39:24.964850132 -0800
+++ b/electron_app/src/electron-main.js 2019-12-16 11:39:44.454850859 -0800
@@ -115,7 +115,7 @@
// It's important to call `path.join` so we don't end up with the packaged asar in the final path.
const iconFile = `riot.${process.platform === 'win32' ? 'ico' : 'png'}`;
-const iconPath = path.join(__dirname, "..", "..", "img", iconFile);
+const iconPath = path.join(__dirname, "..", "img", iconFile);
const trayConfig = {
icon_path: iconPath,
brand: vectorConfig.brand || 'Riot',