squalou / google-chat-linux

source of a fork of google-chat-linux unofficial client from robyf
50 stars 10 forks source link

Major electron update 29.0.0 #89

Closed pbabinca closed 6 months ago

pbabinca commented 6 months ago

Since v28 (see release notes https://releases.electronjs.org/release/v28.0.0 ) there is an interesting new feature in Wayland world:

Added support for ELECTRON_OZONE_PLATFORM_HINT environment variable
on Linux.
pbabinca commented 6 months ago

I have found a bug in my workstation configuration - I set (and exported) export ELECTRON_OZONE_PLATFORM_HINT=auto in my ~/.zshrc. Which worked when I started Google Chat Linux from interactive shell but it didn't work when started from XDG Desktop file. This was, of course, because ~/.zshrc is sourced for interactive shells. I moved this into ~/.zshenv and it works like charm now.

That's why this PR is no longer draft.

squalou commented 6 months ago

good to know that ~/.zshenv does the trick ! I personnaly customise the .desktop files and it's a pain to maintain :)

squalou commented 6 months ago

Notice that I tried on my side and ... it doesn't work from .desktop launcher. Only with interactive shell. But : that's probably related to my setup / app launcher / whatever. I'll release asap anyway.

Thank you!

pbabinca commented 6 months ago

Notice that I tried on my side and ... it doesn't work from .desktop launcher. Only with interactive shell. But : that's probably related to my setup / app launcher / whatever. I'll release asap anyway.

Aren't you on Arch? While searching solution for me a stumbled on this Arch bug: https://bugs.archlinux.org/task/75667

Actually, never mind - that's already closed and for way too old Electron.

squalou commented 6 months ago

Well, I'm on several distros, and Arch too :)

Anyway, problem solved by the obvious solution : logout / login again in my gnome shell :)