-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with snap version of eclipse #74
Comments
I just tested the plug-in on the 2019-03 package for Java developers and it works as expected on my side. A few questions to investigate the issue:
|
|
I just tried installing Eclipse for Java Developers 2019-09 from the website and run that with Discord Rich Presence 1.1.0. Still having the same issue. About adding Eclipse manually to Discord, I actually have two options:
If I add either of those to Discord it will simply show the name and the uptime. No icon or anything like that, just like in my previous screenshot. |
Thank you both for your time. By default when Discord doesn't know the application it shows the name of the executable; that also means that it receives no message from my plug-in. At this point I have two hypothesis:
I'm going to run some tests in a VM and I'll keep you updated. @S-B99 could you tell me which OS you are using? |
I am running KDE Neon 5.16
|
Linux is indeed supported but issues have already been reported on some distributions. #39 reported an issue on Ubuntu 18.04. I know that under the hood the library embeds platform-specific binaries of the Discord SDK (see discord-rpc-release) and they might not work as expected on some distributions. |
I managed to reproduce the issue on a Zorin OS 15 VM; I'll debug it tomorrow. |
I did some research, and sadly it seems that Discord RPC does not behave well with snap, see: discord/discord-rpc#213 (comment) I can confirm that the plug-in works as expected on Zorin OS 15 when both Discord and Eclipse IDE are installed manually. It looks like some people managed to fix the issue by adapting some paths but that looks pretty low level so I don't know whether it's possible for me to do it. I'll see what I can do. |
I may have Discord installed through snap, which could explain why it didn't work even with a manually installed Eclipse. Will double-check this later. |
What do you mean by manually with snap? And it doesn't work on KDE Neon 5.16 |
My bad, I meant "when both Discord and Eclipse IDE are installed manually". I fixed the typo. @S-B99 could you try to install the software manually to check whether it works? You said previously that you had to "build the dependencies to install from the official website"; I am not used to KDE Neon but since it's based on Ubuntu can't you download the official Linux package? Yes, this solution looks interesting but seems to be relevant for users of the Discord VS Code plug-in only. It works for this plug-in because the author(s) — as far as I can see — ported the Discord RichPresence SDK to JavaScript. As they rewrite it they have full control on how they send information to the Discord application. For my part, I rely on java-discord-rpc which binds the official Discord SDK to a Java API. In other words, we do not have any control on how information are sent to the Discord application. As a result, I don't think that this solution is applicable here. |
Oh alright. |
Leaving this here so someone can pin it on me for not replying tomorrow. Sorry, I've been busy outside the country the past week. |
"Installed" the full eclipse version, it works, thanks. |
Any word on getting this to work with snap? |
Hi, sorry for not answering earlier: I was not at home past week. In order to fix the issue I need a Java implementation of Discord SDK and the only one I found is neither mature nor maintained. I however cannot afford the time to update the library so, since an alternative is available (i.e. installing both Eclipse IDE and Discord by hand) I do not plan to work on this soon. I am deeply sorry about that; anyone willing to help is of course more than welcome to take over the library so that I can use it in the plug-in. |
That's alright, thanks for your reply! Thanks for making this, it works great as long as you're not using snaps |
Hello there, I already had to deal with snapcraft and flatpak and I figured I'd share my experience. The issue here is that those two softwares make a sandbox around discord or eclipse, the problem is that in the end eclipse might not found the socket file to connect to send informations to, I already found a workaround for flatpak which is simply to make a symlink from $XDG_RUNTIME_DIR/app/com.discordapp.Discord/discord-ipc-0 to $XDG_RUNTIME_DIR. Meanwhile that work, eclipse have to be installed without using flatpak nor snapcraft 🙄. as for snapcraft, I have no idea, I have found multiple issues with workarounds but they all don't work. |
Just a note for others: This also does not work on the snap version of discord. You must install both Eclipse and Discord outside of snap. |
You'd need to have the discord socket file in $XDG_RUNTIME_DIR for it to work on an Unix system, that's how discord-rpc was made https://github.com/discord/discord-rpc/blob/master/src/connection_unix.cpp#L52-L77 |
Bug description
Does not work with snap version of eclipse. Tried my own API key, along with adding eclipse manually. Doesn't show the rich presence
Expected behavior
It works
How to reproduce
Steps to reproduce the behavior:
Additional context
The text was updated successfully, but these errors were encountered: