Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux transparency, (Electron Issue reports multiple OSs) #8

Open
tankerkiller125 opened this issue May 23, 2018 · 11 comments
Open

Linux transparency, (Electron Issue reports multiple OSs) #8

tankerkiller125 opened this issue May 23, 2018 · 11 comments
Labels
bug Something isn't working

Comments

@tankerkiller125
Copy link
Contributor

tankerkiller125 commented May 23, 2018

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
Copy link
Contributor Author

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

@ItsWendell
Copy link
Owner

ItsWendell commented May 23, 2018

@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 ItsWendell added the bug Something isn't working label May 23, 2018
@tankerkiller125
Copy link
Contributor Author

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.

@ItsWendell
Copy link
Owner

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

@tankerkiller125
Copy link
Contributor Author

@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.

@cromefire
Copy link

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

@cromefire
Copy link

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

@ItsWendell
Copy link
Owner

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

@cromefire
Copy link

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

@ItsWendell
Copy link
Owner

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!

@cromefire
Copy link

cromefire commented Feb 11, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants