Skip to content

Claude Desktop config and detection paths are wrong on Linux #6847

Closed

Description

@jerm-dro

Problem

On Linux, ToolHive resolves Claude Desktop's paths without the ~/.config prefix, so it reads and writes the wrong locations:

ToolHive resolves Claude Desktop uses
Third-party config library ~/Claude-3p/configLibrary/ ~/.config/Claude-3p/configLibrary/
Detection (user-data dir) ~/Claude ~/.config/Claude

The Claude Desktop entry in pkg/client/config.go sets LLMSettingsPlatformPrefix and LLMDetectPlatformPrefix for macOS and Windows only. With no PlatformLinux entry, both paths are joined directly under the home directory. The Claude Desktop configuration reference puts the local config library at ~/.config/Claude-3p/configLibrary/ on Linux.

Impact

  • thv llm setup --client claude-desktop doesn't detect an installed Claude Desktop on Linux. With --client claude-desktop, it writes a configuration Desktop never reads.
  • thv client connector add|list|rm --client claude-desktop (Add thv client connector for Claude Desktop #6840) uses the same path, so it has the same problem.

Related

IsManaged only checks for macOS managed-preferences profiles. On Linux, Claude Desktop's managed source is /etc/claude-desktop/managed-settings.json, which overrides local config the same way. ToolHive doesn't check for it, so setup and connector add won't warn when it's present.

Suggested fix

Add PlatformLinux: {".config"} to both prefix maps for the Claude Desktop entry, cover the Linux paths in tests, and consider adding the Linux managed-settings check to IsManaged.

Found by @aponcedeleonch in review of #6840.

Activity

  1. added
    bug
    on Oct 16, 2026
  2. added
    needs-triage
    on Oct 16, 2026
  3. added a commit that references this issue on Oct 21, 2026
    9abf364
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions