Home
Random
Log in
Settings
About freem
Disclaimers
freem
Search
Editing
Openai/6964e172-93a0-8013-9baf-b12d96b905a2
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{DISPLAYTITLE:Discord streaming fix}} ''This conversation was exported from ChatGPT''<ref>{{cite web|title=Discord streaming fix|url=https://chatgpt.com/share/6964e172-93a0-8013-9baf-b12d96b905a2|publisher=ChatGPT|access-date=2026-01-13}}</ref> == gpt-5-2 == === User: i cant stream in discord app but i can stream in discord web through chrome, im using cachyOS plasma === i cant stream in discord app but i can stream in discord web through chrome, im using cachyOS plasma === Assistant: This is a classic Discord-on-Linux issue, not a CachyOS-only problem. === This is a classic Discord-on-Linux issue, not a CachyOS-only problem. Since Discord Web works in Chrome but the Discord app doesn’t, the problem is almost certainly Wayland + Electron + PipeWire related. I’ll give you fixes in order of likelihood. Don’t restart unless I explicitly say so. ==== KDE Plasma on CachyOS defaults to Wayland. ==== Run: <syntaxhighlight lang="bash">echo $XDG_SESSION_TYPE </syntaxhighlight> If it says: * wayland → continue (this is the problem) * x11 → tell me (different fix) ==== Discord’s screen sharing is broken on native Wayland. ==== ===== <syntaxhighlight lang="bash">pkill Discord ===== </syntaxhighlight> ===== <syntaxhighlight lang="bash">DISCORD_USE_WAYLAND=0 discord ===== </syntaxhighlight> Now try streaming. ✅ If this works → we’ll make it permanent ❌ If not → go to step 3 ==== So you don’t have to run commands every time. ==== <syntaxhighlight lang="bash">cp /usr/share/applications/discord.desktop ~/.local/share/applications/ nano ~/.local/share/applications/discord.desktop </syntaxhighlight> Find this line: <syntaxhighlight>Exec=/usr/bin/discord </syntaxhighlight> Change it to: <syntaxhighlight>Exec=env DISCORD_USE_WAYLAND=0 /usr/bin/discord </syntaxhighlight> Save and exit: * Ctrl + O * Enter * Ctrl + X Log out & log back in (not full reboot). ==== Run: ==== <syntaxhighlight lang="bash">sudo pacman -S --needed pipewire pipewire-pulse wireplumber xdg-desktop-portal xdg-desktop-portal-kde </syntaxhighlight> Then restart only PipeWire, not your system: <syntaxhighlight lang="bash">systemctl --user restart pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-kde </syntaxhighlight> ==== In Discord: ==== <syntaxhighlight>Settings → Advanced → Hardware Acceleration → OFF </syntaxhighlight> Close Discord → reopen → test stream again. ==== - Discord Web (Chrome) → fully supports PipeWire + Wayland ==== * Discord App → Electron + outdated Wayland support = broken capture * Chrome handles screen portals correctly; Discord app often doesn’t This is Discord’s fault, not CachyOS or KDE. ==== Choose ONE: ==== ===== - Use Discord Web in Chrome ===== * Best stability, zero hacks ===== - Keep Discord app forced to XWayland ===== * Slightly worse performance, but works ==== Reply with: ==== # Output of echo $XDG_SESSION_TYPE # Does Step 2 work or not? I’ll dial it in perfectly after that. === User: even after going to step 3, it still doesnt work === even after going to step 3, it still doesnt work === Assistant: Good — that tells us something important. === Good — that tells us something important. If Step 3 (forcing XWayland) didn’t fix it but Discord Web still works, then this is not a simple Wayland toggle issue anymore. At this point, one of these is true: # Your native Discord package is broken with PipeWire # xdg-desktop-portal is misbehaving on Plasma # You’re using the wrong Discord build (native vs flatpak mismatch) # KDE’s screen portal is stuck (very common) We’ll go surgical. Follow exactly, in order. ==== Run: ==== <syntaxhighlight lang="bash">which discord </syntaxhighlight> And: <syntaxhighlight lang="bash">pacman -Qs discord </syntaxhighlight> Tell me: * Is it discord, discord-canary, or flatpak? ⚠️ Don’t skip this — the fix depends on it. ==== This fixes 70% of Plasma streaming bugs. ==== Close Discord. Then run: <syntaxhighlight lang="bash">systemctl --user stop xdg-desktop-portal systemctl --user stop xdg-desktop-portal-kde systemctl --user stop pipewire systemctl --user stop wireplumber </syntaxhighlight> Wait 10 seconds. Now start them again: <syntaxhighlight lang="bash">systemctl --user start pipewire systemctl --user start wireplumber systemctl --user start xdg-desktop-portal systemctl --user start xdg-desktop-portal-kde </syntaxhighlight> Now launch Discord from terminal: <syntaxhighlight lang="bash">DISCORD_USE_WAYLAND=0 discord </syntaxhighlight> Test streaming a window, not full screen. ==== Native Arch Discord is notorious for this exact issue. ==== ===== <syntaxhighlight lang="bash">sudo pacman -S flatpak ===== </syntaxhighlight> ===== <syntaxhighlight lang="bash">flatpak install flathub com.discordapp.Discord ===== </syntaxhighlight> ===== <syntaxhighlight lang="bash">flatpak run com.discordapp.Discord ===== </syntaxhighlight> ➡️ Try streaming. Why this works: Flatpak Discord ships newer Electron + correct PipeWire permissions. ==== To avoid conflicts: ==== <syntaxhighlight lang="bash">sudo pacman -R discord </syntaxhighlight> Keep Flatpak only. ==== Open: ==== <syntaxhighlight>System Settings → Privacy & Security → Screen Recording </syntaxhighlight> Make sure: * Discord is allowed * No global restriction is enabled ==== Run: ==== <syntaxhighlight lang="bash">journalctl --user -xe | grep -E "portal|pipewire|discord" </syntaxhighlight> If you see errors like: * Failed to create screencast session * No such interface org.freedesktop.portal.ScreenCast 👉 paste them here. ==== - Discord native on Arch/Wayland is unreliable ==== * Discord Web works because Chrome is better * Flatpak Discord is the real fix 9/10 times * CachyOS + Plasma is NOT the problem ===== 1. Output of which discord ===== # Whether Flatpak Discord works or not I’ll finish locking this down after that. === User: एक इमेज अपलोड किया गया === एक इमेज अपलोड किया गया === Assistant: Perfect — this screenshot confirms the root cause 🔥 === Perfect — this screenshot confirms the root cause 🔥 You are using native Arch Discord (<code>/usr/bin/discord</code>) + OpenAsar on KDE Plasma Wayland. That combo is notoriously broken for screen streaming. OpenAsar actually makes it worse on Wayland. Now I’ll give you the real fix, no guessing. ==== - Native Discord (Electron) ❌ bad PipeWire support ==== * OpenAsar ❌ breaks screencast portals on Wayland * KDE Plasma Wayland ❌ stricter than GNOME * Result: streaming fails no matter how many flags you add This is not user error. You hit a known upstream limitation. ==== ### ==== This is what actually works on Plasma Wayland. ====== <syntaxhighlight lang="bash">sudo pacman -R discord openasar-install ====== </syntaxhighlight> ====== <syntaxhighlight lang="bash">sudo pacman -S flatpak ====== </syntaxhighlight> ====== <syntaxhighlight lang="bash">flatpak install flathub com.discordapp.Discord ====== </syntaxhighlight> ====== <syntaxhighlight lang="bash">flatpak run com.discordapp.Discord ====== </syntaxhighlight> ➡️ Start streaming ➡️ Select Window, not Screen (first time) ✅ This works in 90%+ of Plasma Wayland setups. ==== I’m being honest: this is fragile. ==== <syntaxhighlight lang="bash">sudo pacman -R openasar-install </syntaxhighlight> Then: <syntaxhighlight lang="bash">pkill Discord DISCORD_USE_WAYLAND=0 discord --disable-gpu --disable-gpu-compositing </syntaxhighlight> If this fails → stop here and use Flatpak. ==== Go to: ==== <syntaxhighlight>System Settings → Privacy & Security → Screen Recording </syntaxhighlight> Make sure: * Discord is allowed * No “Ask every time” bugged state (toggle off/on) ==== - Reinstall CachyOS ❌ ==== * Switch kernels ❌ * Random Electron flags ❌ * PipeWire reinstall loops ❌ ==== - Discord Web works → proves your system is fine ==== * Native Discord on Arch + Wayland is broken * Flatpak Discord is the real solution * This is Discord’s fault, not Linux, not CachyOS, not you ===== - Did Flatpak Discord streaming work? ===== * Window stream or screen stream? If Flatpak somehow fails (rare), I’ll give you the X11 fallback plan next. === User: एक इमेज अपलोड किया गया === एक इमेज अपलोड किया गया === Assistant: Perfect — this is actually good news. === Perfect — this is actually good news. Nothing is broken. Your system simply doesn’t have Flatpak installed yet, that’s why: <syntaxhighlight>fish: Unknown command: flatpak </syntaxhighlight> You already did the hard part (removing native Discord + OpenAsar). Now let’s finish cleanly. ==== Run: ==== <syntaxhighlight lang="bash">sudo pacman -S flatpak </syntaxhighlight> When it finishes, log out and log back in (not a full reboot — just log out) This is important so Flatpak paths are registered. ==== After logging back in, run: ==== <syntaxhighlight lang="bash">flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo </syntaxhighlight> ==== <syntaxhighlight lang="bash">flatpak install flathub com.discordapp.Discord ==== </syntaxhighlight> Press Y when asked. ==== <syntaxhighlight lang="bash">flatpak run com.discordapp.Discord ==== </syntaxhighlight> Log in → start a stream. 👉 Choose “Window” first, not full screen. ==== Inside Discord: ==== <syntaxhighlight>Settings → Advanced → Hardware Acceleration → OFF </syntaxhighlight> Close Discord → reopen → test again. ==== - Flatpak Discord ships newer Electron ==== * Correct PipeWire + portal permissions * No OpenAsar interference * Plasma Wayland officially supported This is the setup most Arch + KDE users end up on. ==== Run: ==== <syntaxhighlight lang="bash">flatpak override --user --filesystem=host com.discordapp.Discord </syntaxhighlight> Then reopen Discord and try again. ==== Reply with: ==== # Did Discord launch successfully? # Does window streaming work? # Does screen streaming work? Once this is confirmed, I’ll give you: * best Plasma Wayland streaming settings * how to reduce stream lag * optional OBS + Discord combo (if you want) You’re almost done — this was the correct path 👍 === User: still isnt working === still isnt working === Assistant: Alright. === Alright. If even Flatpak Discord doesn’t stream, then we’re past “Discord being Discord” and into a broken Wayland screencast stack on KDE. I’m going to be very direct and very precise now. At this point, there are only two real possibilities left: ==== Your KDE Wayland ScreenCast portal is broken or unreachable. ==== That’s why: * Discord native ❌ * Discord Flatpak ❌ * Discord Web (Chrome) ✅ (Chrome uses a different capture path) This is a known KDE Plasma Wayland failure mode. ==== Run this exact command: ==== <syntaxhighlight lang="bash">qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.ScreenCast </syntaxhighlight> ===== You’ll see method info / no error. ===== ===== You’ll see: ===== <syntaxhighlight>Service 'org.freedesktop.portal.Desktop' does not exist </syntaxhighlight> or <syntaxhighlight>No such interface org.freedesktop.portal.ScreenCast </syntaxhighlight> ➡️ Tell me exactly what it outputs. ==== Sometimes Plasma silently falls back to the wrong portal. ==== Run: <syntaxhighlight lang="bash">echo $XDG_CURRENT_DESKTOP </syntaxhighlight> If it says KDE, continue. Now run: <syntaxhighlight lang="bash">ls /usr/share/xdg-desktop-portal/portals/ </syntaxhighlight> You MUST see: <syntaxhighlight>kde.portal </syntaxhighlight> If you don’t — streaming will NEVER work. ==== ⚠️ This does not reboot your system. ==== <syntaxhighlight lang="bash">systemctl --user stop xdg-desktop-portal systemctl --user stop xdg-desktop-portal-kde systemctl --user stop pipewire systemctl --user stop wireplumber rm -rf ~/.cache/xdg-desktop-portal rm -rf ~/.config/xdg-desktop-portal </syntaxhighlight> Now start everything again: <syntaxhighlight lang="bash">systemctl --user start pipewire systemctl --user start wireplumber systemctl --user start xdg-desktop-portal systemctl --user start xdg-desktop-portal-kde </syntaxhighlight> Wait 15 seconds, then try Discord again. ==== I won’t sugarcoat this: ==== ===== Even when everything is “correct”. ===== ===== Use an X11 Plasma session. ===== ==== At the login screen: ==== # Click Session # Choose Plasma (X11) — NOT Wayland # Log in # Launch Discord (Flatpak or native) # Stream → works instantly No flags. No hacks. No pain. This is what many KDE users quietly do. ==== - Your hardware is fine ==== * PipeWire is installed * Web Discord works * Multiple Discord builds failed * This isolates to Wayland screencast portal ==== - 🟡 Want Wayland purity → accept broken Discord ==== * 🟢 Want working streaming → use Plasma X11 * 🔵 Want perfect Wayland → GNOME (handles portals better) ===== 1. Output of the qdbus command ===== # Whether you’re willing to switch to Plasma X11 I’ll guide you cleanly either way. === User: qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.ScreenCast === qdbus org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.ScreenCast it shows after i use the command fish: Unknown command: qdbus === Assistant: Good — this actually explains a LOT. === Good — this actually explains a LOT. On KDE Plasma, <code>qdbus</code> should exist. If it doesn’t, your KDE DBus tools aren’t installed, which strongly correlates with broken screen portals. We’re going to fix this cleanly. ==== Run: ==== <syntaxhighlight lang="bash">sudo pacman -S qt6-tools </syntaxhighlight> This provides qdbus6 (new KDE uses qdbus6, not qdbus). ==== Now run: ==== <syntaxhighlight lang="bash">qdbus6 org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.ScreenCast </syntaxhighlight> ===== ## ===== Run: <syntaxhighlight lang="bash">pacman -Qs xdg-desktop-portal-kde </syntaxhighlight> You should see it installed. If not: <syntaxhighlight lang="bash">sudo pacman -S xdg-desktop-portal-kde </syntaxhighlight> ==== <syntaxhighlight lang="bash">systemctl --user restart pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-kde ==== </syntaxhighlight> Wait 10 seconds, then test Discord again. ==== - Discord uses DBus → xdg-desktop-portal → KDE ScreenCast ==== * If qdbus/qdbus6 is missing, KDE components are incomplete * Incomplete KDE = broken Wayland capture, guaranteed ==== I’ll be blunt in advance so you’re not surprised: ==== : If Step 2 confirms the portal exists but Discord fails → X11 session is the only reliable fix. ==== 1. Output of the qdbus6 command ==== # Output of pacman -Qs xdg-desktop-portal-kde We’re almost at the finish line now. === User: ❯ qdbus6 org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.ScreenCast === ❯ qdbus6 org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.ScreenCast Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. Error: org.freedesktop.DBus.Error.UnknownMethod No such interface “org.freedesktop.portal” on object at path /org/freedesktop/portal/desktop === Assistant: Good — that output is the smoking gun. === Good — that output is the smoking gun. We’re no longer guessing. : No such interface “org.freedesktop.portal” This means the ScreenCast portal is NOT registered at all. So Discord (native, Flatpak, anything Electron-based) cannot screen share on Wayland on your system right now. Chrome Web works because Chrome bypasses this interface. ==== 🔴 What this definitively means ==== * PipeWire is running ✅ * xdg-desktop-portal service exists ✅ * KDE ScreenCast portal is NOT exposing the interface ❌ This is a broken Plasma Wayland portal stack, not a Discord problem anymore. ==== ⚠️ Important reality check (no sugarcoating) ==== On KDE Plasma Wayland, when you see this exact error, there are only two real outcomes: # Spend hours/days rebuilding KDE + portals (often still flaky) # Switch to Plasma X11 and be done in 2 minutes I’ll give you both, but I strongly recommend option 2. === ✅ OPTION A — GUARANTEED FIX (recommended) === ===== Switch to Plasma X11 ===== This is what many KDE users do quietly. ===== How: ===== # Log out # On the login screen, click Session # Choose Plasma (X11) (NOT Wayland) # Log in # Open Discord (Flatpak or native) # Start streaming → works immediately 🎯 No flags 🎯 No portals 🎯 No hacks This will 100% fix your issue. === 🧪 OPTION B — TRY to fix Wayland (NOT guaranteed) === Only do this if you’re stubborn about Wayland. ===== 1️⃣ Ensure ALL required packages exist ===== <syntaxhighlight lang="bash">sudo pacman -S \ xdg-desktop-portal \ xdg-desktop-portal-kde \ pipewire \ wireplumber \ plasma-wayland-session </syntaxhighlight> ===== 2️⃣ Force KDE portal backend ===== <syntaxhighlight lang="bash">echo "XDG_CURRENT_DESKTOP=KDE" | sudo tee /etc/environment </syntaxhighlight> Log out & log back in (Wayland). ===== 3️⃣ Deep reset (again) ===== <syntaxhighlight lang="bash">systemctl --user stop xdg-desktop-portal xdg-desktop-portal-kde pipewire wireplumber rm -rf ~/.cache/xdg-desktop-portal ~/.config/xdg-desktop-portal systemctl --user start pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-kde </syntaxhighlight> Re-test: <syntaxhighlight lang="bash">qdbus6 org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.portal.ScreenCast </syntaxhighlight> If it still errors → Wayland is a dead end here. ==== 🧠 Final, honest verdict ==== * Your hardware is fine * Your OS is fine * Your Discord installs are fine * KDE Wayland ScreenCast is broken on your system * This is a known Plasma weakness, not user error If your goal is “I just want to stream”, then Plasma X11 is the correct choice right now. ===== Tell me: ===== * Are you willing to switch to Plasma X11? * Or do you want to keep Wayland at all costs? I’ll guide you cleanly either way — but now you know the truth. == References == <references /> [[Category:ChatGPT Shares]] [[Category:openai]]
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Cite web
(
edit
)
Module:Citation/CS1
(
edit
)
Module:Citation/CS1/COinS
(
edit
)
Module:Citation/CS1/Configuration
(
edit
)
Module:Citation/CS1/Date validation
(
edit
)
Module:Citation/CS1/Identifiers
(
edit
)
Module:Citation/CS1/Utilities
(
edit
)
Module:Citation/CS1/Whitelist
(
edit
)
Module:Citation/CS1/styles.css
(
edit
)