Skip to content

Commit

Permalink
try Fix Linux GetSteamDirPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Mossimos committed May 30, 2022
1 parent 76c1866 commit 50cf638
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ public void SetBootAutoStart(bool isAutoStart, string name)

public string? GetSteamDirPath()
{
var rootPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
return Path.Combine(rootPath, "Steam");
return string.Format(
"{1}{0}.steam{0}Steam",
Path.DirectorySeparatorChar,
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
}

static readonly Lazy<string> _SteamProgramPath = new(() => string.Format("{0}usr{0}bin{0}steam", Path.DirectorySeparatorChar));
Expand Down

0 comments on commit 50cf638

Please sign in to comment.