dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] Discord is a pixelated mess

Open lilGyros opened this issue 1 year ago • 9 comments

I installed the ML4W rolling release, followed the on-screen-instructions, etc. and after installing discord via pacman it is basically unuseable.

image

... and looks like this.

Reinstalling discord didn't help. Reinstalling the dotfiles didn't help. Switching to the stable release (after removing the rolling release dotfiles via the settings menu) didn't help either.

What am I doing wrong?

lilGyros avatar Nov 09 '24 18:11 lilGyros

Are you using fractional scaling?

mylinuxforwork avatar Nov 09 '24 21:11 mylinuxforwork

Not sure, how can I check?

I am using every setting on default, except for the waybar color and some keybindings (about 3).

lilGyros avatar Nov 10 '24 16:11 lilGyros

It is in the monitors/default.conf . But if you’re using the default then there is no fractional scaling enabled. Can you open discord again and enter in a terminal hyprctl clients, search for discord and check if xwayland is enabled.

mylinuxforwork avatar Nov 10 '24 16:11 mylinuxforwork

image

It seems to be disabled (it says "0").

Using the latest updates on everything, an Intel i7-6700 and a RX570 8GB, hope this helps. Monitor config is: image

lilGyros avatar Nov 10 '24 17:11 lilGyros

@lilGyros I don't see any issues. I never had issues with Discord on my system.

image

This is crazy.

mylinuxforwork avatar Nov 11 '24 15:11 mylinuxforwork

Well what can I say ^^

Right now I am back on my main computer [the other one is the one I use at my parents house] so solving it is not really urgent, but I'd still like to know, how something like this is possible xd

Ich kann es mir wirklich nicht erklären, warum die Kiste das macht, was sie macht :D

lilGyros avatar Nov 11 '24 19:11 lilGyros

Well what can I say ^^

Right now I am back on my main computer [the other one is the one I use at my parents house] so solving it is not really urgent, but I'd still like to know, how something like this is possible xd

Ich kann es mir wirklich nicht erklären, warum die Kiste das macht, was sie macht :D

Ist wirklich verrückt. Sieht aber wirklich nach einem wayland Problem aus.

mylinuxforwork avatar Nov 11 '24 19:11 mylinuxforwork

Do you think reinstalling would be a valid solution?

[writing in english in case someone else has the same problem ;) ]

lilGyros avatar Nov 11 '24 21:11 lilGyros

Give it a try.

mylinuxforwork avatar Nov 12 '24 06:11 mylinuxforwork

Im having this exact same issue. Im on similar hardware too. i7-7700 and rx 480. Im not on rolling release though. Should this issue be taken to the hyprland github?

ghost avatar Feb 17 '25 07:02 ghost

Are you launching discord with Wayland flags?

mylinuxforwork avatar Feb 17 '25 12:02 mylinuxforwork

Followed this, and have it in ~/.config/electron-flags.conf

https://wiki.hyprland.org/Getting-Started/Master-Tutorial/#force-apps-to-use-wayland

But I will try launching it directly with those flags. Although running hyprctl clients also returns discord using xwayland as 0

ghost avatar Feb 17 '25 16:02 ghost

still does this. This also applies to all electron apps, such as visual studio code, and vesktop.

ghost avatar Feb 18 '25 00:02 ghost

Just wanna mention that this is an ml4w problem. I have reinstalled many times, but decided to remove the hyprland config, and try that, and it works

ghost avatar Feb 18 '25 05:02 ghost

Just wanna mention that this is an ml4w problem. I have reinstalled many times, but decided to remove the hyprland config, and try that, and it works

Maybe it’s something in the environment variables? You can find at the end electron settings. https://github.com/mylinuxforwork/dotfiles/blob/main/share/dotfiles/.config/hypr/conf/ml4w.conf

mylinuxforwork avatar Feb 19 '25 07:02 mylinuxforwork

Maybe it’s something in the environment variables? You can find at the end electron settings. https://github.com/mylinuxforwork/dotfiles/blob/main/share/dotfiles/.config/hypr/conf/ml4w.conf

TL;DR @lilGyros try going to ~/.config/hypr/conf/ml4w.conf and deleting the following lines: # Ozone env = OZONE_PLATFORM,wayland env = ELECTRON_OZONE_PLATFORM_HINT,wayland

Yes, this could very well be it. Since many apps I use rely on electron, I have been using end-4s dotfiles for the meantime, which are working well with electron apps, and after running hyprctl clients while using those dots, it shows discord IS using xwayland. (The default shortcut to open vs code in those dots also have the launch flags, which broke vs code entirely. I removed them and it seemed to work.)

ghost avatar Feb 19 '25 16:02 ghost

I have the exact same problem, but I don't use ML4W, I use HyDE on Hyprland, I don't know how to solve it.

tkjonb avatar Dec 04 '25 00:12 tkjonb