When using multiple windows user profiles that use discord, FiveM won't sync to discord

Client:

  • Current up to date build.

Category:

  • Client Issue

What is happening:

  • I have two user profiles on my Windows 10 Laptop. They both have discord installed. If user #2 logs in and uses the laptop on their account and I then later sign in under my account (without signing them out or restarting the laptop), FiveM can’t register that my discord is synced to my fiveM and won’t connect me to the server.

Once I restart the laptop or log the other user out manually, I can then join the server normally. My thought is that FiveM is reading two instances of Discord or perhaps just the other users instance of discord and can’t resolve the sync check.

I also use FiveM on my main desktop PC which has had discord synced for many months now. I never have this issue on my desktop as I only have one user profile.

I believe this is supported by the following. When having this issue, I reinstalled FiveM, GTA, Discord, & Steam. Cleared cache where possible. As well as a number of other things. The issue did not resolve until I logged the other user out.

This would probably be a Discord bug instead with their IPC layer incorrectly handling Windows session scope. You’re going to have to report it to them, we can’t impact this whatsoever - we already use session-scoped pipes for the Discord IPC.

My suspicion is that the second session’s Discord instance fails to listen on a TCP socket for RPC-over-websockets (as this is system-scoped, not session-scoped), and then as a result of that failure, also refuses to listen on the session-scoped named pipe. Again, this is on Discord to investigate and fix, not us - we do not have access to Discord’s source code, we aren’t Discord’s developers, and there’s no alternate API to use for us to read logged in user data from.