Running
Arch with
KDE plasma on Wayland.
For some reason, uploading files (except for mp4 videos for some reason) doesn't work on Discord and Brave. At first, i thought the files may be corrupted by GIMP, but that was soon ruled out, because it didn't work with files that GIMP didn't even touch. After that i had no ideas, so i went to #quick-questions and got support from @formal rivet , which then helped me troubleshoot for the next 3 (yes, 3) hours with nothing coming of it, But here is what we tried;
- checking
file image.png - if it has to do with flatpak sandboxing (neither brave or discord are flatpaks)
- running both Discord and Brave on X11
- checked perms
ls -ld /tmp - making sure im not using a vpn
- removing discord cache
- completely switching to X11
- Trying it on XFCE (which did actually work, but i am not going to use XFCE.)
- Reinstalling xdg-desktop-portal and xdg-desktop-portal-kde
- forcing the KDE portal
- running
LANG=C brave - manually starting
/usr/lib/kio-fuse &before the browse - trying
QT_QPA_PLATFORMTHEME=gtk brave - tried running ungoogled chromium and firefox (which did actually work, both of them are exempt from this issue)
- tried
ELECTRON_ENABLE_LOGGING=1 QT_QPA_PLATFORMTHEME=gtk discord
After testing all of these things in the total span of nearly 3 hours, we have learned this:
- The culprit is somehow either chromium itself, or electron in total and brave only (Because chromium would connect both discord and brave, but then i don't see why it would work with ungoogled chromium)
- Plasma has something to do with it
- mp4 files are exempt from this for some reason.