Fix riot tray icon and window hiding on startup

This commit is contained in:
layman 2019-12-16 10:50:49 -08:00
parent 0bf7d08705
commit 9d57c26698
6 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,12 @@
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 10:21:31.356675852 -0800
+++ b/electron_app/src/electron-main.js 2019-12-16 10:21:12.442675147 -0800
@@ -368,7 +368,7 @@
// explicitly hide because setApplicationMenu on Linux otherwise shows...
// https://github.com/electron/electron/issues/9621
- mainWindow.hide();
+ //mainWindow.hide();
// Create trayIcon icon
tray.create({

View File

@ -0,0 +1,12 @@
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 10:09:34.583649124 -0800
+++ b/electron_app/src/electron-main.js 2019-12-16 10:09:16.621648454 -0800
@@ -332,7 +332,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);
// Load the previous window state with fallback to defaults
const mainWindowState = windowStateKeeper({

View File

@ -48,6 +48,8 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/riot-1.4.0-move-origin-migrator.patch"
"${FILESDIR}/riot-1.4.0-icon-path.patch"
"${FILESDIR}/riot-1.4.0-fix-hidden-on-start.patch"
)
DESTINATION="/opt/Riot"

View File

@ -48,6 +48,8 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/riot-1.4.0-move-origin-migrator.patch"
"${FILESDIR}/riot-1.4.0-icon-path.patch"
"${FILESDIR}/riot-1.4.0-fix-hidden-on-start.patch"
)
DESTINATION="/opt/Riot"

View File

@ -48,6 +48,8 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/riot-1.4.0-move-origin-migrator.patch"
"${FILESDIR}/riot-1.4.0-icon-path.patch"
"${FILESDIR}/riot-1.4.0-fix-hidden-on-start.patch"
)
DESTINATION="/opt/Riot"

View File

@ -48,6 +48,8 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/riot-1.4.0-move-origin-migrator.patch"
"${FILESDIR}/riot-1.4.0-icon-path.patch"
"${FILESDIR}/riot-1.4.0-fix-hidden-on-start.patch"
)
DESTINATION="/opt/Riot"