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 support? #12

Open
cjb opened this issue Jan 7, 2017 · 10 comments
Open

Linux support? #12

cjb opened this issue Jan 7, 2017 · 10 comments

Comments

@cjb
Copy link

cjb commented Jan 7, 2017

Any ideas on how an implementation on Linux might work? Thanks!

@0x61726b
Copy link
Owner

0x61726b commented Jan 7, 2017

Hello, I've looked into it but its simply not possible or very hard to do. Because there are multiple desktop environments (gnome,kde etc.) you'd have to implement some kind of blurring algorithm yourself. There is not a unified solution that will work on every desktop environment. This module simply uses already existing native funtionality,it doesnt do the actual blurring, as its very complicated and involves the actual GPU. so I fear we can't support Linux easily.

@jancborchardt
Copy link

If someone wants to pick this up for GNOME (which is used by Ubuntu and Fedora for example), there's 2 extensions which do some blurring which might be a good start:

@danimesq
Copy link

@jancborchardt are these extensions compatible with Cinnamon, which is a fork of GNOME?
@arkenthera would a node module enable translucent effect, such as backdrop-filter on CSS? It could achieve blur itself (from CSS) in any platform.

@0x61726b
Copy link
Owner

@DaniellMesquita I havent been following Electron or Chromium for sometime but iirc you needed to enable a flag in Electron side for backdrop blur to work in Electron so that would mean that its not possible from the node module only.

@danimesq
Copy link

danimesq commented May 21, 2019

Yes, I`ve already tested backdrop on Electron (by adding flag and other additions on its json), and it works:
IB blur
But could it be used to the window itself?
Instead of transparent, HTML haves a translucent #fff with CSS backdrop?

@danimesq
Copy link

@0xENDER
Copy link

0xENDER commented Nov 16, 2020

Yes, I`ve already tested backdrop on Electron (by adding flag and other additions on its json), and it works:
IB blur
But could it be used to the window itself?
Instead of transparent, HTML haves a translucent #fff with CSS backdrop?

No, the backdrop-filter only works on the document itself.

@danimesq
Copy link

@arkenthera, what about supporting GNOME for now?

https://github.com/yozoon/gnome-shell-extension-blyr
https://github.com/lviggiani/gnome-shell-extension-wbe

Or, generically, make the window fully transparent on Linux and let the DE itself apply blur; or simply support GNOME for now.

@Delta-official
Copy link

Delta-official commented Feb 6, 2022

Hello, I've looked into it but its simply not possible or very hard to do. Because there are multiple desktop environments (gnome,kde etc.) you'd have to implement some kind of blurring algorithm yourself. There is not a unified solution that will work on every desktop environment. This module simply uses already existing native funtionality,it doesnt do the actual blurring, as its very complicated and involves the actual GPU. so I fear we can't support Linux easily.

i don't believe that you need to make a version for every DE since electron/chromium is built using GTK and i believe all GTK applications can run in all DEs without any problems (firefox runs perfectly fine in KDE Plasma)

i think just supporting GTK would be good enough considering that GTK4 will have/already has a native blur function

@scalgoon
Copy link

Is there any updates to this working on Linux? I'd like to add it to my app, especially the Linux version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants