[BUG]Linux version prefixes the game folder with the user's home folder
Describe the bug
In the Linux version, the path appears to be prefixed with /home/[username]/.steam/steam. If TF2 is not installed in the home folder, the app itself states that the TF2 folder does not exist, but the logs show that it only looks in the steam folder in the user's home folder for any TF2 installation.
This means that installing TF2 in other locations added to Steam will prevent TF2BD from running as it prefixes the path with /home/[username]/.steam/steam.
To Reproduce
Steps to reproduce the behavior:
- In the Steam client go to Settings > Storage
- Click on '/home'
- Scroll down to '+ add drive'
- Select for example '/mnt/ssd', or '/opt/games'
- Install TF2 in the new Steamlibrary
- Launch TF2BD
- Select the "Override tf directory" option
- Enter or navigate to the new installation location
Expected behavior
When looking for the TF2 folder, its path should not be prefixed with the user's Steam folder under /home.
E.g., I do not have a folder /home/leppie/.steam/steam/opt/games on my system.
Logs
PathUtils.cpp(207):std::filesystem::__cxx11::path tf2_bot_detector::FindTFDir(const std::filesystem::__cxx11::path&): Failed to find tf directory from "/home/leppie/.steam/steam"
Desktop (please complete the following information): Fedora 42 Plasma on X11 Version of bot detector: 1.6.4