presence.nvim icon indicating copy to clipboard operation
presence.nvim copied to clipboard

Not working for discord running in browser anymore

Open bellini666 opened this issue 2 years ago • 2 comments

Description

I run discord in my browser, and it used to work a while ago. It stopped working those last days (don't know when)

Neovim version

NVIM v0.9.0-dev-833+gb4c4c232b
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by bellini@behemoth

OS information

Debian Unstable

Steps to reproduce

  1. Run discord in the browser
  2. Open nvim with presence.nvim

Logs

[presence.nvim] Setting up plugin for linux [presence.nvim] Duplicate options: g:presence_auto_update and setup option auto_update [presence.nvim] Using runtime path: /run/user/1000 [presence.nvim] Using Discord IPC socket path: /run/user/1000/discord-ipc-0 [presence.nvim] Checking Discord IPC socket at /run/user/1000/discord-ipc-0... [presence.nvim] Using id 2dbddbcd-6d2b-43c6-b76c-ca3ca82bd570 [presence.nvim] Completed plugin setup [presence.nvim] Getting nvim socket paths... [presence.nvim] Executing command: ss -lx|grep "nvim.*/0" [presence.nvim] Failed to get socket information: ENOENT: no such file or directory: /run/user/1000/discord-ipc-0 [presence.nvim] Failed to get socket information: ENOENT: no such file or directory: /run/user/1000/discord-ipc-0 [presence.nvim] Handling FocusGained event... [presence.nvim] Connecting to Discord... [presence.nvim] Failed to connect to Discord: ENOENT [presence.nvim] Got nvim socket paths: {} [presence.nvim] No other remote nvim instances [presence.nvim] Got nvim socket paths: {} [presence.nvim] No other remote nvim instances [presence.nvim] Handling WinLeave event... [presence.nvim] Handling WinEnter event... [presence.nvim] Handling BufEnter event... [presence.nvim] Connecting to Discord... [presence.nvim] Failed to connect to Discord: ENOENT [presence.nvim] Handling TextChanged event... [presence.nvim] Connecting to Discord... [presence.nvim] Failed to connect to Discord: ENOENT [presence.nvim] Not canceling presence due to switching to a window within the same instance... [presence.nvim] Connecting to Discord... [presence.nvim] Failed to connect to Discord: ENOENT [presence.nvim] Handling WinLeave event... [presence.nvim] Handling WinEnter event... [presence.nvim] Handling BufEnter event... [presence.nvim] Connecting to Discord... [presence.nvim] Handling BufAdd event... [presence.nvim] Failed to connect to Discord: ENOENT [presence.nvim] Handling BufEnter event... [presence.nvim] Connecting to Discord... [presence.nvim] Failed to connect to Discord: ENOENT [presence.nvim] Not canceling presence due to switching to a window within the same instance... [presence.nvim] Connecting to Discord... [presence.nvim] Failed to connect to Discord: ENOENT [presence.nvim] Connecting to Discord... [presence.nvim] Failed to connect to Discord: ENOENT

bellini666 avatar Jan 29 '23 16:01 bellini666

Actually, I might be confused. I tested the discord client those days ago and maybe it was working there but I have the memory of it working in the directory.... Looking at the code I don't see dbus being used, so maybe it is that.

So probably this plugin could use DBUS to make the browser's client also see it?

bellini666 avatar Jan 29 '23 16:01 bellini666

didnt know u could use rich presence on the browser client. afaik discord doesnt even support rich presence on the browser app.

Yakiyo avatar Mar 03 '23 12:03 Yakiyo