Comments (14)
@ShadowMitia Hm, looks like we forgot to disable the reconnection code once the mode is disabled
from elcord.
@ShadowMitia This should be fixed in the latest commit (0cef4ca)!
from elcord.
It disconnects fine now, thanks!
But once disconnected it still shows the last update in the Rich Presence in Discord. And it doesn't seem to be going away even after waiting for a while... On the plus side it doesn't update when changing buffers at all!
The only way to make the Rich Presence go back to normal right now is by either quitting emacs or stopping the daemon if running with it.
from elcord.
Hm, something tells me that might be more on Discord's end than anything... See if you can take a screenshot of the console in the inspector (ctrl-shift-i
) and mark off with arrows or something when you did certain things... :/
from elcord.
Sorry if this is giving you a headache^^
Everything looks fine, except that last line with 'RunningGameStore' that only appears after I quit emacs :/
This happens wether I run emacs as a daemon or not.
Let me know if I can give you more information! Wish I could help more, but I don't know too much about elisp yet...
from elcord.
Hm, it looks like it might just be Discord tracking the pid we send in the SET_ACTIVITY packet.... I don't think we can actually do anything about that aside from spawning a process that does nothing, using its pid, and killing it after disconnecting
from elcord.
Yeah, sounds like Discord Rich Presence was not designed for this...
But if it tracks the PID I understand it not working when in daemon mode, but it does the same when emacs is run in standalone. Shouldn't it detect emacs not running anymore then? Maybe I did something, I should probably double check....
from elcord.
@ShadowMitia Huh? I'm not sure you understand what I'm saying... I'm trying to say that the mode being disabled currently acts funny because Discord doesn't stop recognizing emacs as being played until the pid we send it is killed, even if we completely disconnect it from Discord's RPC server
from elcord.
Right, yeah my bad.... Silly remark...
You said to use a dummy process for its PID earlier, but couldn't you have elcord run in that process directly instead? Then you wouldn't have a dummy process^^
from elcord.
@ShadowMitia Yeah, but that'd require us to either call a headless emacs and somehow get our information back and forth which imo seems like a kludgy solution... My thought was running something like cat
and then we'd be able to kill it at will. Again, just a thought
from elcord.
Keeping in mind that I'm very new at elisp, and bad at processes, but couldn't having an asynchronous process solve everything?
You would still have the mode active on the main emacs thread, just have the part hooked up to the RPC in a subprocess. But I'm guessing it shares the same PID.
In any case, I think I've made this issue diverge sufficiently from its original purpose^^ You should probably close this. I'm sure a solution will turn up someday^^
from elcord.
@ShadowMitia I finally figured out how to do this! After checking the source, we can actually send null
as the activity and it will simply clear itself!
from elcord.
@Mstrodl Congrats! Thanks for working on this issue! I hope it didn't give you any sleepless nights 😁
from elcord.
@ShadowMitia No worries, it's more that I stumbled upon it :P
from elcord.
Related Issues (20)
- Add icons (linked below) for Assembly, Hy, Julia, OCaml, Pascal, and UML.
- Support for multiple clients/accounts HOT 5
- Terraform icon not showing up HOT 1
- Add Shell Icon HOT 5
- Add ESS and polymode-* icons HOT 1
- Add Solidity Mode Icons
- A few small potential aesthetic changes to how it looks in the status HOT 5
- EMMS Support HOT 2
- Add Nim icon HOT 1
- Constantly disconnecting and reconnecting HOT 8
- [bug] RPC doesn't update when changing buffers.
- How to remove line numbers from buffer details?
- attempting to reconnect , despite saving the application id
- Elcord stuck at 'attempting reconnect'
- Add icons — Emacs CN, Cute Doom, Lua, Fortran, GNU Octave, Docker
- Please add support for Webcord HOT 2
- Add emacs beautyline icon
- Support Unicode file names. HOT 1
- doom_cute_icon does not work HOT 7
- Which additional setup is needed for elcord to support arRPC? HOT 1
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 elcord.