Skip to content

Commit

Permalink
Add Flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Jul 4, 2024
1 parent e538c32 commit 0038348
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com) and this project adheres to [Semantic Versioning](https://semver.org).

## [Unreleased](https://github.com/erri120/GameFinder/compare/v4.2.3...HEAD)
## [Unreleased](https://github.com/erri120/GameFinder/compare/v4.2.4...HEAD)

## [Released](https://github.com/erri120/GameFinder/releases)

## [4.2.4](https://github.com/erri120/GameFinder/compare/v4.2.3...v4.2.4) - 2024-07-04

- Steam: find Flatpak installation

## [4.2.3](https://github.com/erri120/GameFinder/compare/v4.2.2...v4.2.3) - 2024-06-25

- Steam: find snap installation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ public static IEnumerable<AbsolutePath> GetDefaultSteamInstallationPaths(IFileSy
yield return fileSystem.GetKnownPath(KnownPath.HomeDirectory)
.Combine(".var/app/com.valvesoftware.Steam/data/Steam");

// "~/.var/app/com.valvesoftware.Steam/.local/share/Steam" (flatpak installation)
// see https://github.com/flatpak/flatpak/wiki/Filesystem for details
yield return fileSystem.GetKnownPath(KnownPath.HomeDirectory)
.Combine(".var/app/com.valvesoftware.Steam/.local/share/Steam");

// "~/snap/steam/common/.local/share/Steam" (snap installation)
yield return fileSystem.GetKnownPath(KnownPath.HomeDirectory)
.Combine("snap/steam/common/.local/share/Steam");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void Test_GetDefaultSteamInstallationPaths_Linux()
SteamLocationFinder
.GetDefaultSteamInstallationPaths(fs)
.ToArray()
.Should().HaveCount(7);
.Should().HaveCount(8);
}

[Fact]
Expand Down

0 comments on commit 0038348

Please sign in to comment.