Comments (8)
If you haven't figured it out, here is what worked for me:
$ find /private/var/folders -name "*discord-ipc*" 2> /dev/null
in my case it returned:/private/var/folders/g3/znz8yyl55ls27thh9l56x6rr0000gn/T/discord-ipc-0
- Go into
/.config/coc/extensions/node_modules/coc-discord-rpc/lib
and openindex.js
. - Change line 3046 from
return ${prefix.replace(/\/$/, '')}/discord-ipc-${id};
toreturn /var/folders/g3/znz8yyl55ls27thh9l56x6rr0000gn/T/discord-ipc-${id};
Configure 3. to return your discord pic path accordingly, and put both the returns in backticks.
from coc-discord-rpc.
@Vaansh znz8yyl55ls27thh9l56x6rr0000gn is this value static? If so, then I can modify the RPC library to detect whether it is running on macOS or not.
The value is not static. Mine was different.
from coc-discord-rpc.
@leonardssh No, I do not think it is static since it’s different from someone’s path in another issue.
from coc-discord-rpc.
If you haven't figured it out, here is what worked for me:
1. `$ find /private/var/folders -name "*discord-ipc*" 2> /dev/null` in my case it returned: `/private/var/folders/g3/znz8yyl55ls27thh9l56x6rr0000gn/T/discord-ipc-0` 2. Go into `/.config/coc/extensions/node_modules/coc-discord-rpc/lib` and open `index.js`. 3. Change line 3046 from `return ${prefix.replace(/\/$/, '')}/discord-ipc-${id};` to `return /var/folders/g3/znz8yyl55ls27thh9l56x6rr0000gn/T/discord-ipc-${id};`
Configure 3. to return your discord pic path accordingly, and put both the returns in backticks.
i love u man it works
from coc-discord-rpc.
It worked for me too, thank you. Should be fixed in the project also.
from coc-discord-rpc.
@Vaansh znz8yyl55ls27thh9l56x6rr0000gn is this value static? If so, then I can modify the RPC library to detect whether it is running on macOS or not.
from coc-discord-rpc.
Hmm, then, there is another solution, we could execute find /private/var/folders -name "*discord-ipc*" 2> /dev/null
using child_process, and that's how we find the path where the discord-ipc is. But I'm going to need one of you for tests if you want to help me. 😊
from coc-discord-rpc.
It seems that there is already a PR with a solution to this problem: discordjs/RPC#113
from coc-discord-rpc.
Related Issues (20)
- Wiki for configuration variables uses wrong values HOT 3
- Allow the user to define their own "file map".
- Add support for Vim
- cannot read property 'write' of null HOT 11
- Workspace never found HOT 5
- Discord Presence not changing. HOT 1
- Cannot read properties of null reading "write" HOT 18
- [coc.nvim] Error on activate extension coc-discord-rpc: Cannot read pro perties of null (reading 'write') HOT 2
- Typerror: e.forEach is not a function HOT 3
- [coc.nvim] RPC: TypeError: e.forEach is not a function error HOT 40
- Link to images used in the app? HOT 3
- State of the repository
- Button
- Displaying the wrong app name HOT 2
- Neovim is not NeoVim HOT 3
- Discord not showing anything as RP. HOT 3
- Feature Request - Disable Timer HOT 1
- RPC: RPC_COULD_NOT_CONNECT: Could not connect HOT 2
- Feature Request - Quiet Mode
- Idle Mode Doesn't Work 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 coc-discord-rpc.