Attempt to locate SL client in LaunchSLClient under other Unices.

This commit is contained in:
Jeff Ames
2008-05-01 18:49:42 +00:00
parent 70f7672dad
commit 239228abd8
3 changed files with 26 additions and 9 deletions

View File

@@ -34,14 +34,24 @@ namespace LaunchSLClient
{
public override void GetClient(ref string exePath, ref string runLine, ref string exeFlags)
{
exePath = "";
runLine = "secondlife";
exeFlags = "";
exePath = string.Empty;
exeFlags = string.Empty;
foreach (string path in Environment.GetEnvironmentVariable("PATH").Split(':'))
{
if (File.Exists(Path.Combine(path, "secondlife")))
{
exePath = path;
break;
}
}
runLine = Path.Combine(exePath, "secondlife");
}
public override string GetConfigDir()
{
return "";
return string.Empty;
}
}
}