Skip to content

Commit 22b57b4

Browse files
committed
Update electron to 27.0.3 #78
1 parent a96ba7d commit 22b57b4

File tree

6 files changed

+33
-11
lines changed

6 files changed

+33
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ An electron-base client for Google Hangouts Chat, since Google didn't see fit to
44

55
## CHANGELOG
66

7+
### 5.27.22-1
8+
9+
Update electron to 27.0.3.
10+
11+
Wayland is best supported now with titlbars and all. Run with `--ozone-platform=wayland` and your're done !
12+
713
### 5.24.22-1
814

915
Fix https://github.com/squalou/google-chat-linux/issues/62 : thank you https://github.com/ThatOneCalculator !

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,16 @@ can prove to be helpful.
4646

4747
### TL/DR;
4848

49-
Run with **both** command line options : `--enable-features=WaylandWindowDecorations --ozone-platform-hint=auto`
49+
Improved with electron 27 : WaylandWindowDecorations is now enabled by default.
50+
51+
Run with `--ozone-platform=wayland`.
5052

5153

5254
### Detailed story
5355

5456
Electron 20 introduced a command line to mimic chromium way to switch to Wayland if available. Simply run electron ap with `--ozone-platform-hint=auto` to make it use Wayland if available, Xorg else. The default value is `default` and does not try Wayland at all.
5557

56-
This has side effects on window decoration (absent on Gnome for instance).
58+
This has side effects on window decoration (absent on Gnome for instance, fixed with electron 27).
5759

5860
Another side effect is the lack of notification in systray. (Which only works already with a workaround on Gnome, see further).
5961

@@ -71,6 +73,10 @@ So, **to use electron's Wayland rendering** edit `/usr/share/applciations/google
7173

7274
See full [CHANGELOG](./CHANGELOG.md).
7375

76+
### 5.27.22-1
77+
78+
Update electron to 27.0.3 with Wayaln improvements.
79+
7480
### 5.24.22-1
7581

7682
Fix https://github.com/squalou/google-chat-linux/issues/62 : thank you https://github.com/ThatOneCalculator !

google-chat-linux-localdev.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
3+
cp -rf assets/icon node_modules/electron/dist/resources/
4+
echo $SCRIPTPATH
5+
export NODE_PATH="$SCRIPTPATH/node_modules/.bin"
6+
export PATH=$NODE_PATH:$PATH
7+
# GTK_USE_PORTAL=1 is set from index.js
8+
# for wayland : --ozone-platform=wayland
9+
${NODE_PATH}/electron "${SCRIPTPATH}/src/index.js" --trace-warnings "$@"
10+

google-chat-linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ echo $SCRIPTPATH
44
export NODE_PATH="$SCRIPTPATH/node_modules/.bin"
55
export PATH=$NODE_PATH:$PATH
66
# GTK_USE_PORTAL=1 is set from index.js
7-
# for wayland : --enable-features=UseOzonePlatform --ozone-platform=wayland
8-
${NODE_PATH}/electron "${SCRIPTPATH}/src/index.js" --trace-warnings "$@"
7+
# for wayland : --ozone-platform=wayland
8+
${NODE_PATH}/electron "${SCRIPTPATH}/src/index.js" --trace-warnings --ozone-platform=wayland "$@"
99

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-chat-linux",
3-
"version": "5.24.22-1",
3+
"version": "5.27.22-1",
44
"description": "Google Hangouts Chat unofficial linux app",
55
"main": "src/index.js",
66
"scripts": {
@@ -48,7 +48,7 @@
4848
"electron-context-menu": "^3.5.0"
4949
},
5050
"devDependencies": {
51-
"electron": "24.8.5",
51+
"electron": "27.0.3",
5252
"electron-builder": "^24.4.0"
5353
}
5454
}

0 commit comments

Comments
 (0)