Comments (5)
That's fine, I can work with this. I need to add snap support as well, as I have done somewhere else already.
from discordrp-mpris.
If someone who uses discord vial flatpak would provide some instructions or submit them as a pull request, I would be glad to add that.
from discordrp-mpris.
I use Discord through Flatpak and have so far had no success getting it to work.
Background: Flatpak does not let processes discover other running processes, and there is no workaround: flathub/com.discordapp.Discord#11 .
It is possible to allow a Flatpak application to access the following features, though:
- IPC (
share=ipc
) - D-Bus Session Bus (
socket=session-bus
) - D-Bus System Bus (
socket=system-bus
)
As well as specified names on the system and session buses (divided by "talks" and "owns).
So far, I've enabled Discord to use IPC, the Session and System buses and I've had no luck. What name does drp-mpris use on the session/system bus?
from discordrp-mpris.
We communicate with Discord over the UNIX Domain Socket it provides in a temporary directory.
discordrp-mpris/discord_rpc/async_.py
Lines 216 to 224 in bef1f30
I'm not aware of any other mechanism of communication that Discord exposes currently, but I also haven't revisited this topic in a while.
from discordrp-mpris.
The Discord Socket when Discord is ran in Flatpak can be found here:
$XDG_RUNTIME_DIR/app/com.discordapp.Discord/discord-ipc-0
Update: creating a symlink from $XDG_RUNTIME_DIR/app/com.discordapp.Discord/discord-ipc-0
to $XDG_RUNTIME_DIR/discord-ipc-0
works, so getting drp-mpris to recognize the first path should also work.
I can try creating a PR for that, but I am not too experienced with Python.
from discordrp-mpris.
Related Issues (20)
- Issues with async discord connection HOT 5
- Extend beyond mpris? HOT 2
- Rich Presence SDK has been deprecated in favor of "GameSDK" HOT 4
- See if setting a custom status via API is possible
- add icon for Lollypop HOT 1
- Support FireFox (and Chrome?) HOT 2
- Show album art instead of player icon HOT 19
- Automatically truncate titles to 128 characters
- No config file on Arch HOT 1
- Add Pithos Pandora Player as a supported player?
- Failed to connect to Discord client HOT 2
- Broken on Python 3.10 HOT 1
- Manual installation refers to the wrong link HOT 1
- Crash with Amberol
- Cannot use `dict` as generic typehint
- KDE Elisa icon support? HOT 1
- Unable to configure players with a space in their name HOT 3
- add "YouTube Music" player icon
- Overwrite player icon using config option HOT 3
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 discordrp-mpris.