maltejur / discord-screenaudio

A custom discord client that supports streaming with audio on Linux.
1.09k stars 35 forks source link

Flatpak: "flatpak run de.shorsh.discord-screenaudio" gets stuck on injecting userstyles #240

Open bomber34 opened 5 months ago

bomber34 commented 5 months ago

When starting the flatpak app, I only get a blank screen that will ask me to force shutdown the app after a few seconds. Running the app via the terminal reveals

[default] Couldn't start kglobalaccel from org.kde.kglobalaccel.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name is not activatable") [default] QLayout: Attempting to add QLayout "" to StreamDialog "", which already has a layout [default] QLayout: Attempting to add QLayout "" to StreamDialog "", which already has a layout [main] Injecting "qwebchannel.js" [main] Injecting "userscript.js" [main] Injecting "style.css" [main] Injecting "vencord.css" [userstyles] Looking for userstyles in /home/user/.var/app/de.shorsh.discord-screenaudio/config/discord-screenaudio

After adding an empty userstyles.css I get

[default] Couldn't start kglobalaccel from org.kde.kglobalaccel.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name is not activatable") [default] QLayout: Attempting to add QLayout "" to StreamDialog "", which already has a layout [default] QLayout: Attempting to add QLayout "" to StreamDialog "", which already has a layout [main] Injecting "qwebchannel.js" [main] Injecting "userscript.js" [main] Injecting "style.css" [main] Injecting "vencord.css" [userstyles] Looking for userstyles in /home/user/.var/app/de.shorsh.discord-screenaudio/config/discord-screenaudio [userstyles] Found userstyles: /home/user/.var/app/de.shorsh.discord-screenaudio/config/discord-screenaudio/userstyles.css [userstyles] Injecting userstyles

Is there a workaround for this issue? I am using Fedora 39 with an Nvidia graphics card and wayland, if that info helps.

Ropshitz commented 5 months ago

I have the same issues on Artix Linux Xfce.

tinyCatzilla commented 5 months ago

Same issue for me with NVIDIA + hyprland. Temporary fix is to downgrade with sudo flatpak update --commit=72a419e90e685620117f1c0a010466130031c44350de3f9b789369eca96a30c4 de.shorsh.discord-screenaudio

TobyTowler commented 4 months ago

Same issue for me with NVIDIA + hyprland. Temporary fix is to downgrade with sudo flatpak update --commit=72a419e90e685620117f1c0a010466130031c44350de3f9b789369eca96a30c4 de.shorsh.discord-screenaudio

Same set up for me, thanks for the fix

bomber34 commented 4 months ago

While the client is able to start with that, I am not able to stream with sound, however. Unfortunately, it means that it is not really a workaround for my situation :/ But thanks nonetheless!

Ropshitz commented 4 months ago

While the client is able to start with that, I am not able to stream with sound, however. Unfortunately, it means that it is not really a workaround for my situation :/ But thanks nonetheless!

I believe it might be an issue related to Pipewire not being properly configured on the machine. As soon as I uninstalled and reinstalled everything, ensuring they worked, the program started working perfectly.