Skip to content

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

@nixloz

Description

@nixloz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglinuxI'm about as lost as your are in linux development.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions