Fix riot tray icon and window hiding on startup
This commit is contained in:
parent
0bf7d08705
commit
9d57c26698
12
net-im/riot-web/files/riot-1.4.0-fix-hidden-on-start.patch
Normal file
12
net-im/riot-web/files/riot-1.4.0-fix-hidden-on-start.patch
Normal 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({
|
||||
12
net-im/riot-web/files/riot-1.4.0-icon-path.patch
Normal file
12
net-im/riot-web/files/riot-1.4.0-icon-path.patch
Normal 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({
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user