Process.Start can't access Roblox protocol
I'm trying to launch Roblox from C#, but it seems it cannot find the Roblox-protocol.
I tried the code I use in Windows run and it did find it, but once I tried it with Process. Start it says the file could not be found.
public static string LaunchRoblox(string authTicket)
{
Random rnd = new Random();
long browserTrackerId = 55393295400 + rnd.Next(1, 100);
TimeSpan t = (DateTime.UtcNow - new DateTime(1970, 1, 1));
int launchTime = (int)t.TotalSeconds * 1000;
string url = $@"roblox-player:1+launchmode:play+gameinfo:{authTicket}+launchtime:{launchTime}+placelauncherurl:https://assetgame.roblox.com/game/PlaceLauncher.ashx?request=RequestGame&browserTrackerId=" + browserTrackerId + "&placeId=185655149&isPlayTogetherGame=false+browsertrackerid:" + browserTrackerId + "+robloxLocale:en_us+gameLocale:en_us";
return url;
}
static void Main(string[] args)
{
Program.x_crsf_token = GetXCSRFToken();
Console.Write("Sucessfully obtained X-CRSF-Token: " + Program.x_crsf_token);
Console.WriteLine("");
string AuthTicket = GetAuthTicket();
Console.Write("Sucessfully obtained AuthTicket: " + AuthTicket);
Console.WriteLine("");
string joiner = LaunchRoblox(AuthTicket);
Console.Write("Trying to launch roblox with:" + joiner);
Console.WriteLine("");
var game = Process.Start(joiner);
game.WaitForExit();
}
