SchildiChat / schildichat-desktop

Matrix client / Element Web/Desktop fork
https://schildi.chat
Apache License 2.0
371 stars 42 forks source link

Feature Request: Automatically check for Wayland #153

Open DashieTM opened 1 year ago

DashieTM commented 1 year ago

Reason:

Schildi chat is one of the most stable electron based matrix clients on wayland, perhaps due to the fact that it uses a more up-to-date electron version? Sadly, in order for schildi chat to run on wayland you still need to either run the application with the needed launch flags, or create your own .desktop file with the needed flags.

Feature:

Is it possible to implement a check for wayland and then automatically pass these flags? Electron apps in general are the last big hurdle for wayland and implementing such checks would solve a huge part of it.

(I understand that this should be implemented best by electron itself, however I am not aware of any such improvements, nor would it affect older electron versions.)

more information: For reference, flatpak also has a switch that one can enable, so maybe it's "easier" to implement with flatpak. image

su-ex commented 1 year ago

I don't know, maybe the folks packaging Element for flatpak have an idea. But might indeed be worth to dig into a bit.

DashieTM commented 1 year ago

I can ask them as well, problem is, their client has scaling issues with wayland and is in general not stable on wayland. (Proper wayland, xwayland works, but it's xwayland so scaling issues ensue) Do you have a more recent version of electron? I tried to check but couldn't find where exactly I could see this.

su-ex commented 1 year ago

We usually follow Element with the electron version, so we might even lag behind if the latest Element release is not yet merged.

DashieTM commented 1 year ago

Hmm, Perhaps there is something else they do that bricks wayland, I noticed the same behavior from fluffy chat. Schildi was the only electron based client that did not have these issues.