mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
feat: add alternative steam path on linux
This commit is contained in:
@@ -19,7 +19,12 @@ export interface SteamAppDetailsResponse {
|
||||
|
||||
export const getSteamLocation = async () => {
|
||||
if (process.platform === "linux") {
|
||||
return path.join(SystemPath.getPath("home"), ".local", "share", "Steam");
|
||||
const possiblePaths = [
|
||||
path.join(SystemPath.getPath("home"), ".steam", "steam"),
|
||||
path.join(SystemPath.getPath("home"), ".local", "share", "Steam"),
|
||||
];
|
||||
|
||||
return possiblePaths.find((p) => fs.existsSync(p)) || possiblePaths[0];
|
||||
}
|
||||
|
||||
if (process.platform === "darwin") {
|
||||
|
||||
Reference in New Issue
Block a user