tf2_bot_detector icon indicating copy to clipboard operation
tf2_bot_detector copied to clipboard

[BUG]Linux version prefixes the game folder with the user's home folder

Open nixloz opened this issue 8 months ago • 2 comments

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:

  1. In the Steam client go to Settings > Storage
  2. Click on '/home'
  3. Scroll down to '+ add drive'
  4. Select for example '/mnt/ssd', or '/opt/games'
  5. Install TF2 in the new Steamlibrary
  6. Launch TF2BD
  7. Select the "Override tf directory" option
  8. 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"

Image

Image

Image

Desktop (please complete the following information): Fedora 42 Plasma on X11 Version of bot detector: 1.6.4

nixloz avatar Jun 04 '25 20:06 nixloz