th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
8.23k stars 483 forks source link

discord connection on fedora not working #836

Closed villagerrrrrrrrr closed 12 months ago

villagerrrrrrrrr commented 2 years ago

heya, i am using fedora 37 (beta) discord activity does not work, when reconnecting it just shows this image

i'm using flatpak's discord, that can be an issue..?

meaningoflife42 commented 1 year ago

I'm using Ubuntu 22.04 and have this same issue. If I install straight from deb or tarball, YTM sees it just fine and the rich presence integration works. Snap or Flatpak and I get no rich presence and upon trying to reconnect from the plugin menu in YTM I get the error shown above. I'd like to have this work but I would much rather deal with no music rich presence than have to manually install the discord.deb every time there's an update.

Edit: did some digging, found this. https://github.com/flathub/com.discordapp.Discord/wiki/Rich-Precense-(discord-rpc) Works fine now.

TheArcaneBrony commented 1 year ago

Having a similar issue but not related to snaps. image Seems the application id tied to the app got terminated

Zo-Bro-23 commented 1 year ago

Having a similar issue but not related to snaps. image Seems the application id tied to the app got terminated

It's a known issue. Either do a custom build or install from here (pre-built by me).

BigicecreamTaken commented 1 year ago

Having a similar issue but not related to snaps. image Seems the application id tied to the app got terminated

It's a known issue. Either do a custom build or install from here (pre-built by me).

Hi, can you explain what is the problem and how your custom build solving it, if you have a fix maybe open PR for it?

Zo-Bro-23 commented 1 year ago

Having a similar issue but not related to snaps. image Seems the application id tied to the app got terminated

It's a known issue. Either do a custom build or install from here (pre-built by me).

Hi, can you explain what is the problem and how your custom build solving it, if you have a fix maybe open PR for it?

Opened PR, merged to master. Custom building just creates an installable file (snap, deb, appimage, exe, etc) to install the latest version. The current release has old code that doesn't work - the file I shared uses the latest code from this repo.

Issue was that the registered Discord application was deleted - I created a new application and updated the app ID.

Araxeus commented 1 year ago

might be worth looking into https://www.npmjs.com/package/@xhayper/discord-rpc if snap/flatpack doesn't work