google-assistant-desktop-client icon indicating copy to clipboard operation
google-assistant-desktop-client copied to clipboard

Linux transparency, (Electron Issue reports multiple OSs)

Open tankerkiller125 opened this issue 6 years ago • 11 comments

Apparently, there is a known issue with hardware accelerated Chrome (Electron) where transparency shows up as white. Apparently, there is a fix as noted in electron/electron#2170

tankerkiller125 avatar May 23 '18 22:05 tankerkiller125

I've actually solved this issue by putting app.disableHardwareAcceleration(); just above the app.ready() code in the index.js file.

tankerkiller125 avatar May 23 '18 23:05 tankerkiller125

@tankerkiller125 Hi! I've read this discussion and tried to implement this fix (it should be already on the development branch).

I switched last week from Windows 10 to Ubuntu 18.06 as my daily driver. I'm on Linux too now and had this issue, I applied a fix for transparency by delaying the creation of the BrowserWindow which works fine on Ubuntu 18.04.

What distro are you on?

ItsWendell avatar May 23 '18 23:05 ItsWendell

Elementary OS (based on Ubuntu 16.04) I actually relized the white went away without this but it it still wasn't transparent and instead was solid black.

tankerkiller125 avatar May 24 '18 00:05 tankerkiller125

@tankerkiller125 can you share your experience with us on Linux? What are you intending to do with the project? :)

ItsWendell avatar May 26 '18 15:05 ItsWendell

@ItsWendell Right now I'm just experimenting with it, but in the future, I could see this project being something that I can actually use on a day to day basis.

tankerkiller125 avatar Jun 08 '18 13:06 tankerkiller125

Ubuntu 18.04, app.disableHardwareAcceleration(); works, the delay not

cromefire avatar Nov 09 '18 21:11 cromefire

But that only seems to work for the assistant window while it is not yet loaded

cromefire avatar Nov 09 '18 21:11 cromefire

For some reason locally here for me I don't have any problems at all since upgrading, @cromefire what are you using exactly?

ItsWendell avatar Nov 12 '18 17:11 ItsWendell

uname: Linux tpu 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux OS: Ubuntu 18.04.1 LTS NVIDIA proprietary driver v390.77 on GTX 960

Also the response window now also works with that change

cromefire avatar Nov 12 '18 20:11 cromefire

Just tested on Fedora 29 (Gnome) and MacOS Sierra (10.12.6) both work fine, also updated some packages and electron to 4.0.3, let me know how this works now!

ItsWendell avatar Feb 11 '19 10:02 ItsWendell

It's still not working without disabling the acceleration, for me it seems to be a problem with the proprietary NVIDIA graphics drivers for Linux that might be the issue, so it should simply disable hw accel on linux, there's nothing demanding in this app which needs hw accel

cromefire avatar Feb 11 '19 12:02 cromefire