Code Monkey home page Code Monkey logo

Comments (4)

echelon avatar echelon commented on May 26, 2024 2

To clarify, is this referring to deleting the broken symlink and then restarting Discord?

Correct

It is possible that the broken symlink was created by a Flatpak installation of Discord

It was probably the Snap version of Discord that did this. I used a fresh Ubuntu system and confirmed that I only installed and ran Ubuntu's Snap and Discord's own .deb.

This is a Snap problem and there's nothing for you to do. I'll close the issue.

Thanks for the help!

from discord-rich-presence.

Rayrsn avatar Rayrsn commented on May 26, 2024

Are you running a flatpak or snap version of discord by any chance? because they're known to to be problematic with sockets since they're contained/sandboxed
Flatpak Issue. (Solution?)
Snap Issue.

from discord-rich-presence.

echelon avatar echelon commented on May 26, 2024

Thanks for the info, @Rayrsn !

I've tested running the app as both an Ubuntu Snap and as Discord's provided Debian package, which I assume does not use Flatpak. Both of them are failing to perform IPC.

I can see why the Snap package isn't working, but I'm not sure what's up with the Debian package.

Here's the process running as installed from a deb:

ps -lAf | grep discord

4 S bt        810175    3001  2  80   0 - 9635938 do_pol 15:22 ?      00:00:37 /usr/share/discord/Discord
0 S bt        810179  810175  0  80   0 - 55525 do_pol 15:22 ?        00:00:00 /usr/share/discord/Discord --type=zygote --no-zygote-sandbox
4 S bt        810180  810175  0  80   0 - 55525 do_wai 15:22 ?        00:00:00 /usr/share/discord/Discord --type=zygote
1 S bt        810182  810180  0  80   0 - 55525 do_pol 15:22 ?        00:00:00 /usr/share/discord/Discord --type=zygote
...

Here are the socket files it's attempting to utilize for IPC:

"/run/user/1000/discord-ipc-0"
"/run/user/1000/discord-ipc-1"
"/run/user/1000/discord-ipc-2"
"/run/user/1000/discord-ipc-3"
"/run/user/1000/discord-ipc-4"
"/run/user/1000/discord-ipc-5"
"/run/user/1000/discord-ipc-6"
"/run/user/1000/discord-ipc-7"
"/run/user/1000/discord-ipc-8"
"/run/user/1000/discord-ipc-9"

And that directory shows the socket file as existing,

find /run/user/1000/ | grep discord
/run/user/1000/discord-ipc-0
/run/user/1000/snap.discord
/run/user/1000/snap.discord/.org.chromium.Chromium.ZzV6Er
/run/user/1000/snap.discord/.org.chromium.Chromium.ZzV6Er/discord1_2.png
/run/user/1000/snap.discord/discord-ipc-0
/run/user/1000/snap.discord/.org.chromium.Chromium.kowpPo
/run/user/1000/snap.discord/.org.chromium.Chromium.kowpPo/SS
...

But it's a broken symlink!

ls -lA /run/user/1000/discord-ipc-0
lrwxrwxrwx 1 bt bt 55 Oct 18 15:47 /run/user/1000/discord-ipc-0 -> /run/user/1000/app/com.discordapp.Discord/discord-ipc-0

ls -lA /run/user/1000/app/com.discordapp.Discord/discord-ipc-0
ls: cannot access '/run/user/1000/app/com.discordapp.Discord/discord-ipc-0': No such file or directory

Not sure what happened here or what app caused this state.

I deleted it, restarted, and everything works!

Edit: Not sure where the broken symlink came from, or if this is your library's responsibility or opportunity to ameliorate.

from discord-rich-presence.

sardonicism-04 avatar sardonicism-04 commented on May 26, 2024

I deleted it, restarted, and everything works!

To clarify, is this referring to deleting the broken symlink and then restarting Discord?

In any case, I can tell you that the library does not create symlinks at any point, it only looks for open pipes under the given paths. It is possible that the broken symlink was created by a Flatpak installation of Discord, and wasn't overwritten by the Debian package.

Sorry for the late response!

from discord-rich-presence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.