#Can't upload files to Discord and Brave

3 messages · Page 1 of 1 (latest)

vocal nest
#

Running archlinuxArch with kde 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;

  1. checking file image.png
  2. if it has to do with flatpak sandboxing (neither brave or discord are flatpaks)
  3. running both Discord and Brave on X11
  4. checked perms ls -ld /tmp
  5. making sure im not using a vpn
  6. removing discord cache
  7. completely switching to X11
  8. Trying it on XFCE (which did actually work, but i am not going to use XFCE.)
  9. Reinstalling xdg-desktop-portal and xdg-desktop-portal-kde
  10. forcing the KDE portal
  11. running LANG=C brave
  12. manually starting /usr/lib/kio-fuse & before the browse
  13. trying QT_QPA_PLATFORMTHEME=gtk brave
  14. tried running ungoogled chromium and firefox (which did actually work, both of them are exempt from this issue)
  15. 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.
vocal nest
#

yes