Skip to content

Commit

Permalink
Add Flatpak and Snap Steam Paths
Browse files Browse the repository at this point in the history
Also use mkdir -p in build.sh
  • Loading branch information
sonic2kk committed Nov 16, 2023
1 parent a542a89 commit b98a6a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## TODO: in future, provide other options for LevelDB
mkdir build
mkdir -p build
g++ main.cpp -o build/dumpsteamcollections -std=c++20 -lleveldb -O2
strip build/dumpsteamcollections
6 changes: 4 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ std::string get_steam_install_path()
{
const std::string home = getenv("HOME");
// Possible paths where Steam for Linux may be installed
const std::string potential_steam_paths[4] = {
const std::string potential_steam_paths[6] = {
home + "/.local/share/Steam",
home + "/.steam/root",
home + "/.steam/steam",
home + "/.steam/debian-installation"
home + "/.steam/debian-installation", // Mainly newer Ubuntu, Linux Mint, and Pop!_OS
home + "/.var/app/com.valvesoftware.Steam/data/Steam", // Flatpak Steam
home + "/snap/steam/common/.steam/root", // Steam Snap
};

std::string found_steam_path;
Expand Down

0 comments on commit b98a6a4

Please sign in to comment.