Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steam apps fail to launch through Discord on Windows. #99

Open
Tyaap opened this issue Oct 13, 2020 · 7 comments
Open

Steam apps fail to launch through Discord on Windows. #99

Tyaap opened this issue Oct 13, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@Tyaap
Copy link

Tyaap commented Oct 13, 2020

To Reproduce
I am using a Steam app ID to register a URI scheme, like this:
client.RegisterUriScheme(steamAppID: "212480")

Expected behavior
The app should launch when e.g. clicking a join link through Discord, but it does not.

Desktop

  • OS: Windows 7
  • Framework: .net fx 4.0
  • Discord RPC C# v1.0.150

Additional context
I have narrowed down the cause of the problem:
The URI generated in WindowsUriSchemeCreator.cs is retrieving the Steam exe location from Software\\Valve\\Steam\\SteamExe in the registry. In my case it retrieved c:/Program Files (x86)/Steam/steam.exe. Windows seems to misinterpret c:/ and fails to execute the URI command. I manually replaced this with c:\ using Regedit and the URI command was able to execute.

@Tyaap Tyaap added the bug Something isn't working label Oct 13, 2020
@Tyaap
Copy link
Author

Tyaap commented Oct 13, 2020

I currently have a workaround, which is to register the URI scheme like this:
client.RegisterUriScheme(executable: "explorer steam://rungameid/212480")

@Lachee
Copy link
Owner

Lachee commented Oct 14, 2020

huh what a strange bug.
Im not entirely sure if its a steam install issue or this library issue, as correctly installed paths should use \ instead of / for the directory separator.

Your fix is certainly interesting and im not entirely sure what it is doing.

@DoubleBullet
Copy link

I have the same problem. Do you guys have a discord server for support?

@Lachee
Copy link
Owner

Lachee commented Jun 9, 2021

I have the same problem. Do you guys have a discord server for support?

No, this github is the best place to get support.
Can you provide the location that your steam directory is installed under?

@DoubleBullet
Copy link

I have the same problem. Do you guys have a discord server for support?

No, this github is the best place to get support.
Can you provide the location that your steam directory is installed under?

For me it's under C:\Program Files (x86)\Steam . The game is installed a different folder under a different hard drive.

I mainly just want to pass in this command "steam://joinlobby/{SteamAppID}/{LobbyID}/{UserID}". For now I've manually setup a button to which has that command as the URL and it works if you click on it, but I want the same for the Join/Request to Join feature inside of Discord. Currently nothing happens when trying to send that over to the Register.

@DoubleBullet
Copy link

Did this ever get fixed?

@HAHOOS
Copy link

HAHOOS commented Nov 21, 2021

idk, as i know owner is AFK idk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants