Comments (6)
The example works completely fine on my end. Could you elaborate on your environment at runtime (i.e. system, Discord version, etc)?
from discord-rich-presence.
I am running the program using wsl, using the stable build, I have the discord desktop client on while I am running the program.
from discord-rich-presence.
Ah. The issue is that you're trying to run it in WSL. While it's possible to communicate with Windows named pipes from the Linux subsystem in WSL 1, the same cannot be done in WSL 2.
With the amount of work it requires to get even WSL 1 working in such a manner, your best bet is unfortunately likely to be developing on Windows, or in a full installation of Linux.
from discord-rich-presence.
Well, shortly after i decided to go full linux and it still does not work getting the same error here, Maybe the prob is ubuntu as its the only same thing between the 2 environments
from discord-rich-presence.
If that's the case, and the error is still appearing even when you run the example while Discord is open, then my best guess is that it would have to be an issue beyond the crate itself (i.e. with how you're running it, your system setup, etc).
As for Ubuntu, it has been successfully tested before, so I can't imagine that's the root issue here.
from discord-rich-presence.
I'm running this on vanilla Ubuntu 22.04 and am receiving the same error message.
Desktop Discord client:
Stable 152532 (a118a24) Host 0.0.20 Linux 64-Bit (5.15.0-48-Generic)
rustc 1.64.0
from discord-rich-presence.
Related Issues (20)
- No rich presence HOT 8
- [Help] Clearing Activity HOT 4
- Is it possible to check if the client is connected? HOT 1
- I've implemented some features that might be helpful HOT 4
- Button click does not seem to work HOT 3
- Calling Activity::buttons on an empty Vec causes DiscordIpc::set_activity to silently fail HOT 3
- Useless lifetimes HOT 5
- Client connects but not showing presence HOT 2
- Generic IPC use case
- Changes to `Activity` design HOT 4
- Couldn't connect to the Discord IPC socket on Ubuntu 22.04 HOT 4
- error[E0433]: unresolved import `ipc` HOT 4
- Error when compiling to WASI HOT 1
- Add support for Snap and Flatpak installs HOT 2
- set_activity does not update the presence if the calling thread go to sleep immediately after calling set_activity HOT 1
- Rich presence automatically disappears after a minute HOT 3
- Button Links not working on MacOS HOT 3
- What is this error? HOT 7
- Dynamic LargeImage HOT 2
- Unhandleable SIGPIPE when sending activity to closed client HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-rich-presence.